xsl-list
[Top] [All Lists]

Re: remove certain elements but keep children

2004-10-04 19:05:54
Thanks very much! Works like a charm.

b

Pieter Reint Siegers Kort wrote:
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/>
--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>