xsl-list
[Top] [All Lists]

Re: [xsl] Add an element that contains multiple nested elements

2006-05-16 10:33:41
try the below xsl:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:template match="rootElement">
                <xsl:copy>
                        <container>
                                <xsl:apply-templates
select="*|@*|comment()|processing-instruction()|text()"/>
                        </container>
                </xsl:copy>
        </xsl:template>
        <xsl:template match="*|@*|comment()|processing-instruction()|text()">
                <xsl:copy>
                        <xsl:apply-templates
select="*|@*|comment()|processing-instruction()|text()"/>
                </xsl:copy>
        </xsl:template>
</xsl:stylesheet>


Kind Regards,
Jagdishwar (Jagsmiles)

--~------------------------------------------------------------------
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>
--~--