Project

Profile

Help

Bug #2138

closed

current() apparently referring to context node in xsl:number/@count

Added by Evan Lenz over 9 years ago. Updated over 9 years ago.

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

test.xml (64 Bytes) test.xml Evan Lenz, 2014-09-02 22:41
test.xsl (354 Bytes) test.xsl Evan Lenz, 2014-09-02 22:41
test2.xsl (393 Bytes) test2.xsl Evan Lenz, 2014-09-02 22:41

Please register to edit this issue

Also available in: Atom PDF