You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Software AG <sa...@stark-verlag.de> on 2001/11/20 12:32:44 UTC
'Normalizing' namespace declarations
Hi there.
I've obtained documents by Xalan XSLT that has been made up with namespaces.
The documents look something like this:
<?xml version="1.0">
<root>
<element xmlns:a="http://someurl"></element>
<element xmlns:a="http://someurl"></element>
</root>
<?xml version="1.0">
<root>
<element xmlns:a="http://someurl">
<a:b>somecontent</a:b>
</element>
<element xmlns:a="http://someurl">
<a:b>somecontent</a:b>
<a:b>somecontent</a:b>
<a:b>somecontent</a:b>
</element>
</root>
These documents contain more namespace declarations than necessary. Here I'd
like to normalize, means to reduce the namespace declarations to 1 by moving
them to the root node. How is this possible?
Hiran
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org