[Mono-bugs] [Bug 74859][Nor] New - Compiler warnings result in XsltCompileException when compiling XSL containing msxsl:script function

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 May 2005 08:24:19 -0400 (EDT)


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=74859

--- shadow/74859	2005-05-07 08:24:18.000000000 -0400
+++ shadow/74859.tmp.15821	2005-05-07 08:24:19.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 74859
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compiler warnings result in XsltCompileException when compiling XSL containing msxsl:script function
+
+When an XSLT contains an msxsl script function, an XsltCompileException 
+is reported if the compiler reports a warning when compiling the msxsl 
+script.
+
+I've attached a repro for this issue. Just compile and run.
+
+Actual result:
+
+Unhandled Exception: System.Xml.Xsl.XsltCompileException: XSLT compile 
+error. Stylesheet script compile error:
+
+C:\DOCUME~1\drieseng\LOCALS~1\Temp\35316.0.cs line 17 WARNING: CS0169: 
+The private 
+method 'GeneratedAssembly.Script286ed05949f1436ea8c171c5721b1cd7.PadRight
+( string,  int)' is never used file:///d:/mono-bugs/xslt/test.xslt 
+file:///d:/mono-bugs/xslt/test.xslt file:///d:/mono-bugs/xslt/test.xslt 
+file:///d:/mono-bugs/xslt/test.xslt ---> 
+System.Xml.Xsl.XsltException: .........
+
+Expected result:
+
+The following text should be output in the console:
+
+whatever            dunno
+
+Atsushi, can you add a test for this to avoid future regressions ?
+
+Thanks !