xsl-list
[Top] [All Lists]

Moving an attribute from a node to a child node

2003-07-02 15:49:58
I am trying to move an attribute from one node to child node.  This seems like 
an easy
task, but I've been having issues.

Here is a sample XML document:

<myXML>
<NodeA reason="because">
<NodeB> ..... </NodeB>
</NodeA>
</myXML>

I need to move the attribute 'reason' to NodeB.  

<myXML>
<NodeA>
<NodeB reason="because"> ..... </NodeB>
</NodeA>
</myXML>



Thank you in advance!

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>