xsl-list
[Top] [All Lists]

Re: [xsl] How to move the namespaces onto the root element when there is a namespace prefix that is bound to different namespaces?

2013-01-13 14:01:32
That works great, provided the XML document doesn't have the same namespace 
prefix bound to different namespaces. For example, it fails on this XML 
document:

<Test xmlns="A">
    <ns1:element xmlns:ns1="B">Hello</ns1:element>
    <ns1:element xmlns:ns1="C">C</ns1:element>
</Test>

Notice that the namespace prefix, ns1, is bound to two different namespaces.

While that's possible.... don't do that, no one will thank you for it.



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--