Steffen Beyer
Usenet Archive
- Joined
- Apr 17, 2001
- Messages
- 7
- Reaction score
- 0
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">
<xsl
utput 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">
<xsl
<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,