I am a newbie on XSLT and I am finding the concept bit difficult to grasp; any book or link suggestion?
I am trying to remove the namespace from customerinfo node and all its child nodes i.e. customerinfo,name and age. After the namespace has been removed i want to use the resulting xml as a input for other xslts?
XML 1:
<uc:cpy xmlns:uc="http://oldcompany.com">
<customerinfo xmlns="http://oldcompany.com" xmlns:d="http://test" Cid="1004" fid="aa">
<name xmlns="http://oldcompany.com">Matt Foreman</name>
<age xmlns="http://oldcompany.com">26</age>
</customerinfo>
<uc:prodcut xmlns="http://oldcompany.com" xmlns:d="http://test" >
<uc:item>Hammer</uc:item>
<uc:quantity>1</uc:quantity>
</uc:prodcut>
</uc:cpy>
XML 2: after removing namespace; leaving the attribute value as-is:
<uc:cpy xmlns:uc="http://oldcompany.com">
<customerinfo Cid="1004" fid="aa">
<name>Matt Foreman</name>
<age>26</age>
</customerinfo>
<uc:prodcut xmlns="http://oldcompany.com" xmlns:d="http://test" >
<uc:item>Hammer</uc:item>
<uc:quantity>1</uc:quantity>
</uc:prodcut>
</uc:cpy>
Finally, pass the xml 2 as input for other xslt template imports on the document.