J
jon.harding
Hi, I have XML that looks like this
<xml version="1.0" encoding="UTF-8">
<Foo xmlns:xsi:=htttp;//www.w3.org/2001/etc>
<Baa1>
<Baa11>baa</Baa11>
<Baa12>baa</Baa12>
</Baa1>
<Baa3>
<Baa38>baa</Baa38>
</Baa3>
<Baa4>baa</Baa4>
</Foo>
and what I want to turn it in to with xslt is
<Foo>
<Baa1>
<Baa11>baa</Baa11>
<Baa12>baa</Baa12>
</Baa1>
<Baa3>
<Baa38>baa</Baa38>
</Baa3>
<Baa4>baa</Baa4>
</Foo>
with generic xslt. The XML will have a different structure, the root
nodes won't always be Foo and the children won't always look like Baa,
they will always be different. My requirement is to strip out the
namespaces and <?xml etc> in a generic sense.
Is it possible to write generic xslt to strip out all namespaces (ALL
OF THEM, and some elements in the XML tree may have other namespaces
that are not w3.org) and <?xml xxxxx> leaving everything else in there
Thank you for your help
Jon
<xml version="1.0" encoding="UTF-8">
<Foo xmlns:xsi:=htttp;//www.w3.org/2001/etc>
<Baa1>
<Baa11>baa</Baa11>
<Baa12>baa</Baa12>
</Baa1>
<Baa3>
<Baa38>baa</Baa38>
</Baa3>
<Baa4>baa</Baa4>
</Foo>
and what I want to turn it in to with xslt is
<Foo>
<Baa1>
<Baa11>baa</Baa11>
<Baa12>baa</Baa12>
</Baa1>
<Baa3>
<Baa38>baa</Baa38>
</Baa3>
<Baa4>baa</Baa4>
</Foo>
with generic xslt. The XML will have a different structure, the root
nodes won't always be Foo and the children won't always look like Baa,
they will always be different. My requirement is to strip out the
namespaces and <?xml etc> in a generic sense.
Is it possible to write generic xslt to strip out all namespaces (ALL
OF THEM, and some elements in the XML tree may have other namespaces
that are not w3.org) and <?xml xxxxx> leaving everything else in there
Thank you for your help
Jon