Project

Profile

Help

Bug #427

closed

Variables in patterns overwrite those in calling template

Added by Anonymous over 20 years ago. Updated over 12 years ago.

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

bugfiles.tar.gz (9.56 KB) bugfiles.tar.gz Anonymous, 2004-07-27 20:07

Please register to edit this issue

Also available in: Atom PDF