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/09/05 08:40:36 UTC
[jira] Updated: (XALANJ-1810) last() breaks nodeset position
The following issue has been updated:
Updater: Brian Minchau (mailto:minchau@ca.ibm.com)
Date: Sat, 4 Sep 2004 11:38 PM
Changes:
assignee changed from Xalan Developers Mailing List
description changed from 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. to 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.
environment changed from Operating System: Other
Platform: Other to Operating System: Other
Platform: Other
priority changed to Blocker
Component changed to XPath
Component changed from Xalan
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-1810?page=history
---------------------------------------------------------------------
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: Unassigned
Priority: Blocker
Project: XalanJ2
Components:
XPath
Versions:
CurrentCVS
Assignee:
Reporter: Martin Algesten
Created: Thu, 4 Mar 2004 10:44 AM
Updated: Sat, 4 Sep 2004 11:38 PM
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