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

Brian Minchau commented on XALANJ-1810:
---------------------------------------

Martin, Christine's remark about the patch being applied was to the latest 
development code. However, now that code has been integrated into the official 
2.7 release, so please verify that it is fixed in 2.7 and close this issue down.

Thanks.

> last() breaks nodeset position
> ------------------------------
>
>          Key: XALANJ-1810
>          URL: http://issues.apache.org/jira/browse/XALANJ-1810
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: Latest Development Code
>  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