[ http://issues.apache.org/jira/browse/XALANJ-1810?page=all ]

Brian Minchau updated XALANJ-1810:
----------------------------------

    Fix Version: 2.7
                     (was: CurrentCVS)

> last() breaks nodeset position
> ------------------------------
>
>          Key: XALANJ-1810
>          URL: http://issues.apache.org/jira/browse/XALANJ-1810
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: CurrentCVS
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Martin Algesten
>     Priority: Blocker
>      Fix For: 2.7
>  Attachments: Bug27429UnionPathIterator.txt, xalancheck.jsp
>
> This might be a dupe of #22949, but I'm not sure.
> My XML is:
>   <xml>
>     <section name="name1">
>       <section name="name2"></section>
>       <section name="name3"></section>
>     </section>
>   </xml>
> My transform does a:
>   <xsl:apply-templates select="section | section/section"/>
> ...
>   <xsl:template match="section">
>     <xsl:value-of select="position()"/> - <xsl:value-of select="last()"/>
>   </xsl:template>
> The 'last()' call seems to upset the current position in the nodeset and only 
> the first section will match.
> Will attach my test JSTL transform.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to