[Mono-bugs] [Bug 347659] New: Valid XSLT raise an error in Mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 11 11:25:15 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=347659


           Summary: Valid XSLT raise an error in Mono
           Product: Mono: Class Libraries
           Version: 1.2.5
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: fog at initd.org
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=186937)
 --> (https://bugzilla.novell.com/attachment.cgi?id=186937)
Valid XSLT that raise an error in Mono

The attached XSLT is perfectly valid (tested using xsltproc) but raise an error
when loaded into an XslTransform using the Load() method (see attached test.)

Note that the code contains an absolute path that need to be changedfor the
test to fail the right way.

The original exception is below:

$ mono --debug wrong.exe 

Unhandled Exception: System.Xml.Xsl.XsltCompileException: XSLT compile error.
Error during parse of e:section/e:section/e:section/e:title/ at
file:///home/fog/problem.xsl(46,4). ---> System.Xml.XPath.XPathException: Error
during parse of e:section/e:section/e:section/e:title/ --->
Mono.Xml.Xsl.yyParser.yyException: irrecoverable syntax error
  at Mono.Xml.Xsl.XsltPatternParser.yyparse (yyInput yyLex) [0x002d0] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/PatternParser.cs:413 
  at Mono.Xml.Xsl.XsltPatternParser.Compile (System.String xpath) [0x00007] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/PatternParser.jay:49
--- End of inner exception stack trace ---

  at Mono.Xml.Xsl.XsltPatternParser.Compile (System.String xpath) [0x00027] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/PatternParser.jay:53 
  at Mono.Xml.XPath.Pattern.Compile (System.String s, Mono.Xml.Xsl.Compiler
comp) [0x00000] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.XPath/Pattern.cs:46 
  at Mono.Xml.Xsl.Compiler.CompilePattern (System.String pattern,
System.Xml.XPath.XPathNavigator loc) [0x00018] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/Compiler.cs:361 
  at Mono.Xml.Xsl.XslTemplate..ctor (Mono.Xml.Xsl.Compiler c) [0x00131] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs:275 
  at Mono.Xml.Xsl.XslStylesheet.HandleTopLevelElement (Mono.Xml.Xsl.Compiler c)
[0x0013f] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/XslStylesheet.cs:447 
  at Mono.Xml.Xsl.XslStylesheet.ProcessTopLevelElements (Mono.Xml.Xsl.Compiler
c) [0x000f1] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/XslStylesheet.cs:535 
  at Mono.Xml.Xsl.XslStylesheet.Compile (Mono.Xml.Xsl.Compiler c) [0x001f8] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/XslStylesheet.cs:160 
  at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav,
System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00110]
in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/Compiler.cs:168
--- End of inner exception stack trace ---

  at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav,
System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x0012a]
in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/Mono.Xml.Xsl/Compiler.cs:172 
  at System.Xml.Xsl.XslTransform.Load (System.Xml.XPath.XPathNavigator
stylesheet, System.Xml.XmlResolver resolver, System.Security.Policy.Evidence
evidence) [0x00000] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:355 
  at System.Xml.Xsl.XslTransform.Load (System.String url,
System.Xml.XmlResolver resolver) [0x0005c] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:281 
  at System.Xml.Xsl.XslTransform.Load (System.String url) [0x00000] in
/home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.2.5.1/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:266 
  at C.Main () [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list