I'd like to take data from some XML files and transform them into a new XML document. However, I do not want the definition of a namespace in the XSLT to occur in the result document.
In other words:
source:
<Namespace:Root xmlns:Namespace="http://www.something.com">
stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:Namespace="http://www.something.com">
result:
<resultRoot xmlns:Namespace="http://www.something.com">
<!--I don't want the Namespace definition above-->
I am using msxsl for the transformation.
xsltproc
) it worked fine. So switching from a XSLT 1.0 to a XSLT 2.0 processors can actually change the output significantly although semantically the extra namespaces should not be a problem downstream except maybe for volume aspects. – Ripply