T
titanandrews
Hi,
I have ran into a situation that I think should be possible, but I am
fairly new to XSLT so maybe not.
Suppose I have the following document
<ROOT>
<FOO name="A">
<CHILD name="B"/>
</FOO>
</ROOT>
I am creating a new XML doc using XSLT, and I change the name attribute
of the first node FOO in my target doc. The name attribute of CHILD is
dependent on it's parent, i.e. it's built from the parent name. So I
select the parent name with XPATH "../@Name", but it returns the name
from the source document. I need the name from the target document,
because the old name is no good. How can I do this? Is it possible to
modify a source node in XSLT? I can modify a DOM document in a program
easily, so it seems like it would be possible to do in XSLT. If I can
do this, then the task will be easy. Are there any other ways to
achieve this?
Many thanks for the help!
regards,
B
I have ran into a situation that I think should be possible, but I am
fairly new to XSLT so maybe not.
Suppose I have the following document
<ROOT>
<FOO name="A">
<CHILD name="B"/>
</FOO>
</ROOT>
I am creating a new XML doc using XSLT, and I change the name attribute
of the first node FOO in my target doc. The name attribute of CHILD is
dependent on it's parent, i.e. it's built from the parent name. So I
select the parent name with XPATH "../@Name", but it returns the name
from the source document. I need the name from the target document,
because the old name is no good. How can I do this? Is it possible to
modify a source node in XSLT? I can modify a DOM document in a program
easily, so it seems like it would be possible to do in XSLT. If I can
do this, then the task will be easy. Are there any other ways to
achieve this?
Many thanks for the help!
regards,
B