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:52:17 UTC

[jira] Commented: (XALANJ-1810) last() breaks nodeset position

    [ http://issues.apache.org/jira/browse/XALANJ-1810?page=comments#action_12445777 ] 
            
Brian Minchau commented on XALANJ-1810:
---------------------------------------

Martin,
this fix will be going into the 2.7.1 release, which we expect to be available in late November 2006, however it would be good if you could verify that the lastest development code fixes the problem that you report.

We realize that it is about two and a half years since you opened this issue (ouch), sorry about it taking so long.
- Brian Minchau

> 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