Actions
Bug #2138
closed![Author: Evan Lenz](https://www.gravatar.com/avatar/863da3aa2af81832eb92ac144af1a18f?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
current() apparently referring to context node in xsl:number/@count
Status:
Rejected
Priority:
Low
Assignee:
-
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2014-09-02
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
I ran into this in a project for my client.
I think this should be the current() node in XSLT processing, no?
This:
<xsl:number count="*[@type eq current()/@type]" level="any"/>
yields a different result than this:
<out:variable name="type" select="@type"/>
<out:number count="*[@type eq $type]" level="any"/>
To reproduce, run test.xsl against test.xml (attached).
test.xsl has the wrong behavior, I believe (outputs "3")
test2.xsl has the correct behavior (outputs "2")
Files
Please register to edit this issue
Actions