You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/10/21 17:50:15 UTC
[jira] Resolved: (XALANJ-1810) last() breaks nodeset position
Message:
The following issue has been resolved as FIXED.
Resolver: Christine Li
Date: Thu, 21 Oct 2004 8:49 AM
Patch has been applied. Please verify
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1810
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1810
Summary: last() breaks nodeset position
Type: Bug
Status: Resolved
Priority: Blocker
Resolution: FIXED
Project: XalanJ2
Components:
XPath
Fix Fors:
CurrentCVS
Versions:
CurrentCVS
Assignee:
Reporter: Martin Algesten
Created: Thu, 4 Mar 2004 10:44 AM
Updated: Thu, 21 Oct 2004 8:49 AM
Environment: Operating System: Other
Platform: Other
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report 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