S
Steffen Beyer
Hi,
my XSLT processes input documents which use various namespaces. Short
example:
XML input:
<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">
<xslutput method="html"/>
<xsl:template match="<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,
my XSLT processes input documents which use various namespaces. Short
example:
XML input:
<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">
<xslutput method="html"/>
<xsl:template match="<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,