You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2006/10/31 05:56:17 UTC
[jira] Closed: (XALANJ-1810) last() breaks nodeset position
[ http://issues.apache.org/jira/browse/XALANJ-1810?page=all ]
Brian Minchau closed XALANJ-1810.
---------------------------------
Never mind my last remark, I was tired and confused. I'm closing this issue down since the fix was in the 2.7.0 release about 18 months ago. Martin has not come back to very so I'm closing it down.
> last() breaks nodeset position
> ------------------------------
>
> Key: XALANJ-1810
> URL: http://issues.apache.org/jira/browse/XALANJ-1810
> Project: XalanJ2
> Issue Type: Bug
> Components: XPath
> Affects 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org