[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] xmlns=""
Subject: [xsl] xmlns="" From: "Merrilees, David" <David.Merrilees@xxxxxxxxxxxx> Date: Tue, 22 Feb 2011 14:08:45 +0000 |
Hi 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=""> <title>Vmtejte</title> </head> <body xmlns="" id="home"> <body> </html> Thanks This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL VAT Registration Number: GB 220 4302 31
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] template never matches, Piet van Oostrum | Thread | Re: [xsl] xmlns="", Martin Honnen |
Re: [xsl] Cheaper to prepend or app, Dimitre Novatchev | Date | [xsl] The set datatype implemented , Dimitre Novatchev |
Month |