Actions
Bug #2138
closedcurrent() 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