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

*** shadow/3311 Tue Aug 28 11:11:30 2001
--- shadow/3311.tmp.11933       Tue Aug 28 11:11:30 2001
***************
*** 0 ****
--- 1,58 ----
+ +============================================================================+
+ | not retrieving correct values when wildcard is use with position()         |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3311                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   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                                   |
+ XSL:
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+ <xsl:template match="/">
+       <xsl:variable name="x">
+               <xsl:variable name="node" select="/foo/*/test/text()"/>
+               <xsl:for-each select="$node[1]">
+                       <xsl:value-of select="."/>
+               </xsl:for-each>
+       </xsl:variable>
+       <html>
+               "<xsl:value-of select="$x"/>"
+       </html>
+ </xsl:template>
+ </xsl:stylesheet>
+ 
+ XML:
+ <foo>
+       <bar>
+               <test value="23">1</test>
+               <test value="13">3</test>
+               <test value="12">5</test>
+               <test value="22">7</test>
+               <test value="5">9</test>
+       </bar>
+       <baz>
+               <test value="10">2</test>
+               <test value="9">4</test>
+               <test value="11">6</test>
+               <test value="12">8</test>
+               <test value="15">1</test>
+       </baz>
+ </foo>
+ 
+ The Expected Output should be: "1"
+ However, the Actual Output is: "2"
+ 
+ If nodes is set to [6], the expected output is "2"
+ However, the actual output is "".
+ 
+ It seems like the 1st node (bar) is ignored.
+ 
+ If the xpath is set as "/foo/*/*/text()", the output is correct.

Reply via email to