Joris, you're being a real help here, I really appreciate your
assistance. I'm still fairly new to XSL, so I've having lots of
problems.
The original problem was this: I have a binary tree and I'm working on a
subtree of this master tree. I want to replace an attribute value on the
root of the tree, but I can't say in advance how many levels there will
be between the root of the subtree and the root of the master tree. In
fact, the subtree result will not be in the same order as the original
subtree I started working with (e.g. the attributes will be different).
What I would like to know is how can I replace the subtree on the master
tree and update the root node's attribute, given that I can't say in
advance how many levels there will be between the subtree and the root.
So in one scenario, soing $current/../../.. (root + 3 levels) will get
you to the root, but in another, $current/.. (root + 1 level) will do
the same.
I know you can't change the contents of variables, so if the master tree
was in a variable called "tree", I'd have to put the result of the
subtree replace in a variable called "tree2" or something else along
those lines.
I hope this helps you understand the problem I'm having.
Johnny
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!