[Mono-bugs] [Bug 76116][Nor] New - XSL containing msxsl:script causes XsltCompileException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 15 15:24:32 EDT 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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=76116

--- shadow/76116	2005-09-15 15:24:32.000000000 -0400
+++ shadow/76116.tmp.12274	2005-09-15 15:24:32.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 76116
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XSL containing msxsl:script  causes XsltCompileException
+
+Load an XSL transform containing a msxsl script block causes the 
+following exception to be thrown:
+
+Unhandled Exception: System.Xml.Xsl.XsltCompileException: XSLT compile 
+error. Stylesheet script compile error: 
+
+/tmp/33050.0.cs line 2 ERROR: CS0116: A namespace can only contain types 
+and namespace declarations     ---> System.Xml.Xsl.XsltException: 
+Stylesheet script compile error: 
+
+/tmp/33050.0.cs line 2 ERROR: CS0116: A namespace can only contain types 
+and namespace declarations  
+in <0x0038a> Mono.Xml.Xsl.ScriptCompilerInfo:GetScriptClass 
+(System.String code, System.String classSuffix, 
+System.Xml.XPath.XPathNavigator scriptNode, 
+System.Security.Policy.Evidence evidence)
+in <0x000a6> Mono.Xml.Xsl.MSXslScriptManager+MSXslScript:Compile 
+(System.Xml.XPath.XPathNavigator node)
+in <0x000aa> Mono.Xml.Xsl.MSXslScriptManager:AddScript 
+(Mono.Xml.Xsl.Compiler c)
+in <0x00308> Mono.Xml.Xsl.XslStylesheet:HandleTopLevelElement 
+(Mono.Xml.Xsl.Compiler c)
+in <0x001c3> Mono.Xml.Xsl.XslStylesheet:ProcessTopLevelElements 
+(Mono.Xml.Xsl.Compiler c)
+in <0x00393> Mono.Xml.Xsl.XslStylesheet:Compile (Mono.Xml.Xsl.Compiler c)
+in <0x001ba> Mono.Xml.Xsl.Compiler:Compile 
+(System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, 
+System.Security.Policy.Evidence evidence)--- End of inner exception stack 
+trace ---
+
+in <0x0025c> Mono.Xml.Xsl.Compiler:Compile 
+(System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, 
+System.Security.Policy.Evidence evidence)
+in <0x00031> System.Xml.Xsl.XslTransform:Load 
+(System.Xml.XPath.XPathNavigator stylesheet, System.Xml.XmlResolver 
+resolver, System.Security.Policy.Evidence evidence)
+in <0x00012> System.Xml.Xsl.XslTransform:Load 
+(System.Xml.XPath.XPathNavigator stylesheet, System.Xml.XmlResolver 
+resolver)
+in <0x00024> System.Xml.Xsl.XslTransform:Load (IXPathNavigable stylesheet)
+in <0x00073> Test:Main ()
+
+To reproduce, extract the attach (gzipped tar) archive and compile 
+test.cs using mcs and run it.


More information about the mono-bugs mailing list