Actions
Bug #427
closedVariables in patterns overwrite those in calling template
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Legacy ID:
sf-998978
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
SourceForge user: clistheret
I've an xslt document that uses a selector something
like the following:
[$g = string-join(for $n in ancestor-or-self:: return
concat('/', name($n), '[',
string(count($n/preceding-sibling::*[name(.) =
name($n)]) + 1), ']'), ''))]
to find certain nodes given by parameters.
This selector seems to be runing variables that I
defined before this point. It's a bit difficult to
explain, as I'm not sure what is happening behind the
scenes. Run the provided xml through the provided xslt
and see what happens.
My output looks like (spacing excluded):
testvar: "the text to begin with"
testvar: "col2"
testvar: "data2"
There is no reason that the value of testvar should change.
Files
Please register to edit this issue
Actions