[Mono-bugs] [Bug 77051][Nor] Changed - XSLT compiler incorrectly
reports error.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Dec 21 00:33:46 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by adamc at unc.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=77051
--- shadow/77051 2005-12-21 00:25:52.000000000 -0500
+++ shadow/77051.tmp.18706 2005-12-21 00:33:46.000000000 -0500
@@ -1,10 +1,10 @@
Bug#: 77051
Product: Mono: Class Libraries
Version: 1.0
-OS:
+OS: unknown
OS Details: Ubuntu 5.10 amd64
Status: NEW
Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.XML
@@ -78,6 +78,27 @@
which the error is reported is not an xsl:template at all:
<doc:mode mode="label.markup" xmlns="">
apparently the compiler isn't checking the name of the elment with the mode
attribute when it reports this error?
+
+------- Additional Comments From adamc at unc.edu 2005-12-21 00:33 -------
+I tried causing the error within a single stylesheet:
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+xmlns:db="http://docbook.org/docbook-ng"
+xmlns:exsl="http://exslt.org/common"
+xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="db
+exsl" version="1.0"
+ xmlns:foo="http://www.foo.com/ns">
+
+<foo:element mode="foomode">foomessage</foo:element>
+
+<xsl:template match="*">
+ <xsl:if test="name(.) = 'body'">
+ <xsl:message>Hey! Found a body!</xsl:message>
+ </xsl:if>
+ <xsl:apply-templates/>
+</xsl:template>
+</xsl:stylesheet>
+
+but was unable to reproduce the error.
More information about the mono-bugs
mailing list