[Mono-bugs] [Bug 77051][Nor] New - XSLT compiler incorrectly reports error.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 21 00:25:52 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.


--- shadow/77051	2005-12-21 00:25:52.000000000 -0500
+++ shadow/77051.tmp.18637	2005-12-21 00:25:52.000000000 -0500
@@ -0,0 +1,83 @@
+Bug#: 77051
+Product: Mono: Class Libraries
+Version: 1.0
+OS Details: Ubuntu 5.10 amd64
+Status: NEW   
+Severity: Unknown
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: adamc at unc.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: XSLT compiler incorrectly reports error.
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+System.Xml.Xsl incorrectly parses DocBook XSLTs, reporting an error where
+none occurs
+I don't have a minimal test case for this, but I do have a use case you
+might want to support: the problem arises with the DocBook XSLT
+distribution (reporting against 1.68.1, which has the beginnings of DocBook
+5 compatibility; see "Additional Information" for why I believe this is
+I have encountered this problem on more than one Linux distribution (also
+occured on Fedora Core 4 / 32-bit Athlon and a similar version of the
+Steps to reproduce the problem:
+1. Try to compile DocBook XHTML XSLT driver stylesheet with
+source code:
+XslTransform tr = new XslTransform();
+// this is where Ubuntu puts 'em
+tr.Transform(sourceFile, destFile, null);
+Actual Results:
+System.Xml.Xsl.XsltCompileException: XSLT 'template' element must not have
+'mode' attribute when it does not have 'match' attribute.
+file:///usr/share/sgml/docbook/stylesheet/xsl/nwalsh/common/labels.xsl line
+21, position 2
+file:///usr/share/sgml/docbook/stylesheet/xsl/nwalsh/common/labels.xsl line
+21, position 2
+in <0x0044c> Mono.Xml.Xsl.XslTemplate:.ctor (Mono.Xml.Xsl.Compiler c)
+in <0x00305> Mono.Xml.Xsl.XslStylesheet:HandleInclude (Mono.Xml.Xsl.Compiler c)
+in <0x000bd> Mono.Xml.Xsl.XslStylesheet:HandleTopLevelElement
+(Mono.Xml.Xsl.Compiler c)
+in <0x001e3> Mono.Xml.Xsl.XslStylesheet:ProcessTopLevelElements
+(Mono.Xml.Xsl.Compiler c)
+in <0x003cb> Mono.Xml.Xsl.XslStylesheet:Compile (Mono.Xml.Xsl.Compiler c)
+in <0x0021c> Mono.Xml.Xsl.Compiler:Compile (System.Xml.XPath.XPathNavigator
+nav, System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence)
+Expected Results:
+A compiled stylesheet.
+How often does this happen? 
+Additional Information:
+The error reported would be an error, however the line in the file from
+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?

More information about the mono-bugs mailing list