Hi,
my XSLT processes input documents which use various namespaces. Short
example:
XML input:
<news:foo xmlns:news="http://some.example/news"/>
XSLT:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:news="http://some.example/news">
<xsl:output method="html"/>
<xsl:template match="news:foo">
<html>
<head><title>Demo</title></head>
<body>
<p>Demo</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
HTML output:
<html xmlns:news="http://some.example/news">
<head>
<title>Demo</title>
</head>
<body>
<p>Demo</p>
</body>
</html>
Now, the "xmlns:news" attribute is neither necessary nor valid HTML.
Using LibXSLT, how can I avoid it?
Regards,
--
Steffen Beyer <sb****@reactor.de>
GnuPG key fingerprint: CA00 1611 242B 89D4 E643 E235 05F3 7689 DD3E EB26
Public key available upon request or at http://wwwkeys.de.pgp.net