Subject: Best namespace attribute removal strategy? From: Max Romantschuk <max@xxxxxxxxxx> Date: Mon, 21 Jun 2004 09:39:03 +0300 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>The Title</title> </head>
<h1>A Heading.</h1> <p> Lorem ipsum dolor sit amet. </p>
</body> </html> ------------------------
--- My XSL stylesheet: --- <xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:template match="/"> <xsl:copy-of select="xhtml:html/xhtml:body/*"/> </xsl:template>
</xsl:stylesheet> --------------------------
--- Output 1: --- <h1 xmlns="http://www.w3.org/1999/xhtml">A Heading.</h1> <p xmlns="http://www.w3.org/1999/xhtml"> Lorem ipsum dolor sit amet. </p> -----------------
--- Output 2: --- <body xmlns="http://www.w3.org/1999/xhtml">
<h1>A Heading.</h1> <p> Lorem ipsum dolor sit amet. </p>
</body> -----------------
Sincerely, Max Romantschuk
-- Max Romantschuk http://max.nma.fi/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Re: xsl:include with para, Michael Kay | Thread | Re: [xsl] Best namespace attribute , Mayo |
Re: [xsl] Performance with DOM, Jeff Kenton | Date | Re: [xsl] Best namespace attribute , Mayo |
Month |