Subject: Re: [xsl] xmlns="" From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 22 Feb 2011 15:15:40 +0100 |
When I add a default namespace to an element, it's direct descendants acquire an xmlns="". Does anyone know why this is, or how to avoid it?
Input:
<?xml version="1.0" encoding="UTF-8"?> <html> <head> <title>Vmtejte</title> </head> <body id="home"> <body> </html>
XSL:
<xsl:template match="/html"> <html xmlns="http://www.w3.org/1999/xhtml"> <xsl:sequence select="./node()"/> </html> </xsl:template>
Output:
<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head xmlns="">
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xmlns="", Merrilees, David | Thread | Re: [xsl] xmlns="", Andrew Welch |
[xsl] The set datatype implemented , Dimitre Novatchev | Date | Re: [xsl] xmlns="", Andrew Welch |
Month |