[Mono-bugs] [Bug 55875][Nor] New - Cause of compile error in msxsl:script lost
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Mar 2004 13:13:13 -0500 (EST)
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@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=55875
--- shadow/55875 2004-03-21 13:13:13.000000000 -0500
+++ shadow/55875.tmp.28783 2004-03-21 13:13:13.000000000 -0500
@@ -0,0 +1,88 @@
+Bug#: 55875
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cause of compile error in msxsl:script lost
+
+A compile error for a msxsl script in a xsl stylesheet is not reported
+correctly, instead a FileNotFoundException wrapped in a
+XsltCompileException is thrown.
+
+However, this does not provide any information about the actual cause of
+the exception.
+
+I attached a repro for this issue.
+
+On Mono, this repro results in the following exception information :
+
+Unhandled Exception: System.Xml.Xsl.XsltCompileException: --->
+System.IO.FileNotFoundException: File
+'/tmp/5cc5adbc-fd32-40c0-b1ea-3625a58edcdf.dll' not found.
+in (unmanaged)
+/home/gert/mono/install/lib/libmono.so.0(mono_raise_exception+0x1 f)
+[0x400949ff]
+in (unmanaged) /home/gert/mono/install/lib/libmono.so.0 [0x400bbec7]
+in <0x00024> (wrapper managed-to-native)
+System.Reflection.Assembly:LoadFrom (st ring)
+in <0x004d6> Mono.Xml.Xsl.ScriptCompilerInfo:GetScriptClass
+(string,string,Syste
+m.Xml.XPath.XPathNavigator,System.Security.Policy.Evidence)
+--- End of inner exception stack trace ---
+
+in <0x005e5> Mono.Xml.Xsl.ScriptCompilerInfo:GetScriptClass
+(string,string,Syste
+m.Xml.XPath.XPathNavigator,System.Security.Policy.Evidence)
+in <0x000d6> MSXslScript:Compile ()
+in <0x000e1> Mono.Xml.Xsl.MSXslScriptManager:AddScript (Mono.Xml.Xsl.Compiler)
+in <0x0049e> Mono.Xml.Xsl.XslStylesheet:HandleTopLevelElement ()
+in <0x00076> Mono.Xml.Xsl.XslStylesheet:ProcessTopLevelElements ()
+in <0x0067b> Mono.Xml.Xsl.XslStylesheet:.ctor (Mono.Xml.Xsl.Compiler)
+in <0x0020d> Mono.Xml.Xsl.Compiler:Compile
+(System.Xml.XPath.XPathNavigator,Syst
+em.Xml.XmlResolver,System.Security.Policy.Evidence)
+in <0x00044> System.Xml.Xsl.ManagedXslTransform:Load
+(System.Xml.XPath.XPathNavi
+gator,System.Xml.XmlResolver,System.Security.Policy.Evidence)
+in <0x00054> System.Xml.Xsl.XslTransformImpl:Load
+(string,System.Xml.XmlResolver )
+in <0x00014> System.Xml.Xsl.XslTransform:Load (string,System.Xml.XmlResolver)
+in <0x00016> System.Xml.Xsl.XslTransform:Load (string)
+in <0x0003a> XsltTest.EntryPoint:Main ()
+
+
+On MS.NET, the following exception is thrown :
+
+Unhandled Exception: System.Xml.Xsl.XsltException: Script compile errors:
+file:///D:/mono-test-projects/xslt-issue/ok/namespace.xslt(14,4) : error
+CS0201:
+ Only assignment, call, increment, decrement, and new object expressions
+can be used as a statement
+file:///D:/mono-test-projects/xslt-issue/ok/namespace.xslt(14,4) : error
+CS0103:
+ The name 'xxx' does not exist in the class or namespace
+'Microsoft.Xslt.CompiledScripts.CSharp.ScriptClass_1'
+
+
+ at System.Xml.Xsl.Compiler.CompileAssembly(CodeDomProvider provider,
+Hashtable typeDecls, String nsName)
+ at System.Xml.Xsl.Compiler.CompileScript()
+ at System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver
+xmlResolver)
+ at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet,
+XmlResolver resolver)
+ at System.Xml.Xsl.XslTransform.Load(String url)
+ at XsltTest.EntryPoint.Main()
+
+As you can see, this gives actual information on the cause of the exception.