[ 
https://issues.apache.org/jira/browse/XALANJ-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722412#comment-17722412
 ] 

Joe Kesselman commented on XALANJ-1810:
---------------------------------------

Never mind; I searched on unresolved resolution rather than checking the status 
for RESOLVED or CLOSED. Theoretically the latter should imply the former, but 
it doesn't always.

> last() breaks nodeset position
> ------------------------------
>
>                 Key: XALANJ-1810
>                 URL: https://issues.apache.org/jira/browse/XALANJ-1810
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in 
> Xalan projects.  Anybody can view the issue.) 
>          Components: XPath
>    Affects Versions: 2.7.1
>         Environment: Operating System: Other
> Platform: Other
>            Reporter: Martin Algesten
>            Priority: Blocker
>             Fix For: 2.7
>
>         Attachments: ASF.LICENSE.NOT.GRANTED--Bug27429UnionPathIterator.txt, 
> ASF.LICENSE.NOT.GRANTED--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 was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to