Given the following XML:
<?xml version="1.0" encoding="utf-8"?>
<Store>
<p1:Document xmlns:p1="urn:iso:std:iso:xyz">
<p1:Class>
Hello
<p1:Type>
Now
</p1:Type>
</p1:Class>
<!-- more elements -->
</p1:Document>
</Store>
How would I write an XSLT to transform the Document element in the following way:
<?xml version="1.0" encoding="utf-8"?>
<Store>
<Document xmlns="urn:iso:std:iso:123>
<Class>
Hello
<Type>
Now
</Type>
</Class>
<!-- more elements -->
</Document>
</Store>
As you can see, I need to copy the Document element, but I need to strip all of its namespace declarations and prefixes, and then add a new namespace declaration.
How would I accomplish this in XSL?