xsl-list
[Top] [All Lists]

[xsl] removing a specific namespace declaration

2009-11-07 19:43:11
I'm trying to remove what I believe to be an unused namespace declaration from 
the output. eg:

Source:
<?xml version="1.0" encoding="ISO-8859-1"?>
<svg  viewBox="0 0 360 792" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:foo="http://www.foo.com";>
<!-- svg content -->
</svg>

Becomes:
<?xml version="1.0" encoding="ISO-8859-1"?>
<svg  viewBox="0 0 360 792" xmlns="http://www.w3.org/2000/svg";
xmlns:xlink="http://www.w3.org/1999/xlink";>
<!-- svg content -->
</svg>

ie, the foo namespace is removed in the transformation.

I've seen many posts on removing all namespaces, but can't figure out how to 
remove a specific namespace.

Any thoughts are greatly appreciated.



      

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>