Re: [xsl] Newbie Q - transformation

Subject: Re: [xsl] Newbie Q - transformation
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sun, 26 Aug 2007 18:11:38 +0200
John Smith wrote:

how can I transform this:

<a/>
<plus/>
<b/>

to this:
<plus>
<a/>
<b/>
</plus>

<xsl:template match="plus">
<xsl:copy>
<xsl:copy-of select="preceding-sibling::a[1] | following-sibling::b[1]"/>
</xsl:copy>
</xsl:template>


If you need help to fit that template into a complete stylesheet then show us the ancestor elements of those elements.


--


	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread