[Mono-bugs] [Bug 59134][Wis] New - Regression in XSLT code

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 26 May 2004 16:22:36 -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 jaak@zd.com.pl.

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

--- shadow/59134	2004-05-26 16:22:36.000000000 -0400
+++ shadow/59134.tmp.18588	2004-05-26 16:22:36.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 59134
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jaak@zd.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Regression in XSLT code
+
+Looks like some change made in the last 10 days introduced a regression in
+XSLT code. The problem seems to be related to template parameter passing:
+
+<xsl:template name="zzz">
+    <xsl:param name="id" />
+    <xsl:value-of select="/data/text[@id=$id]/@text" />
+</xsl:template>
+
+<xsl:call-template name="zzz">
+        <xsl:with-param name="id">aa</xsl:with-param>
+</xsl:call-template>
+
+This doesn't output anything despite the fact that
+/data/text[@id='aa']/@text is there in the input file.
+
+This works fine (note that $id has been replaced with 'aa'):
+
+<xsl:value-of select="/data/text[@id='aa']/@text" />
+
+Final note: when I update System.XML from May 15th:
+(cd System.XML && cvs update -D "May 15" && make && make install)
+
+it works fine. Fresh CVS produces incorrect results:
+(cd System.XML && cvs update -A && make && make install)
+
+I'm attaching a testcase to reproduce the issue.