Subject: RE: [xsl] remove certain elements but keep children From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx> Date: Mon, 4 Oct 2004 13:44:31 -0500 |
Hi Ben, try this stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" omit-xml-declaration="no"/> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> </head> <body> <xsl:apply-templates select="*" /> </body> </html> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="output"> <xsl:apply-templates select="*"/> </xsl:template> </xsl:stylesheet> Cheers, <prs/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] remove certain elements b, Jarno.Elovirta | Thread | Re: [xsl] remove certain elements b, Ben Munat |
Re: [xsl] remove certain elements b, Anton Triest | Date | Re: [xsl] Xalan giving TransformerE, Brian J. Coan |
Month |