Re: [xsl] replacing nodes during xsl:copy-of

Subject: Re: [xsl] replacing nodes during xsl:copy-of
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 06 Jan 2011 15:01:13 +0100
Mark Anderson wrote:

My xsl is basically

<apply-templates select="Chapter">
	<xsl:copy-of select="text">
	<apply-templates select="Section">
		<xsl:copy-of select="text">	
		<apply-templates select="Sub-Section">
			<xsl:copy-of select="text">	
			<apply-templates select="clause">
			<xsl:copy-of select="text">	

Sorry, an apply-templates can contain param and sort elements but nothing else like copy-of or further apply-templates elements. So the above is not even syntactically possible.
How does your XML input look? How does the result look you want to create with XSLT?


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread