PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3324

*** shadow/3324 Tue Aug 28 15:45:07 2001
--- shadow/3324.tmp.16114       Tue Aug 28 15:45:07 2001
***************
*** 0 ****
--- 1,62 ----
+ +============================================================================+
+ | parameter loses status as node set.                                        |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3324                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Translet generated by xsltc gets confused about whether parameters are node sets
+ are not.  Given the following simple xslt that counts nodes:
+ 
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
+       <xsl:output method="xml" indent="yes" />
+ 
+       <xsl:template name="foo">
+               <xsl:param name="foo.bar"/>
+ 
+               <xsl:for-each select="$foo.bar"><xsl:variable name="datum"
+ select="position()"/>(<xsl:value-of select="$datum"/>)</xsl:for-each>
+       </xsl:template>
+ 
+       <xsl:template match="/">
+               <xsl:call-template name="foo">
+                       <xsl:with-param name="foo.bar" select="/data/*/datum/@value"/>
+               </xsl:call-template>
+       </xsl:template>
+ 
+       </xsl:stylesheet>
+ 
+ With the following input:
+ 
+ <data>
+       <foodata>
+               <datum value="2"/>
+               <datum value="3"/>
+               <datum value="4"/>
+               <datum value="5"/>
+       </foodata>
+       <bardata>
+               <datum value="6"/>
+               <datum value="7"/>
+               <datum value="8"/>
+               <datum value="9"/>
+       </bardata>
+ </data>
+ 
+ The translet spits out the error message:
+ 
+ Runtime Error: Invalid conversion from 'reference' to 'node-set'.
+ 
+ rather than correctly generating a the output
+ (1)(2)(3)(4)(5)(6)(7)(8)
+ 
+ which xt produces.

Reply via email to