[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Add an element that contains multiple nested elements
From: "Jagdishwar (Jagsmiles)" <jagsmiles@xxxxxxxxx>
Date: Tue, 16 May 2006 19:33:21 +0200
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)

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member