[xsl] Eliminating Duplicate Elements

Subject: [xsl] Eliminating Duplicate Elements
From: Antony.Tomasovic@xxxxxxxx
Date: Wed, 14 Aug 2002 14:33:13 +1000
Hi,

I've read the archives about elimating duplicate elements
but still can't seem to get my head around the concept.

Can anyone, in as simple terms as possible, explain how
I can use XSL to turn the following XML:

<fred>
<wilma>
<pebbles> one </pebbles>
</wilma>
</fred>

<fred>
<wilma>
<pebbles> two </pebbles>
</wilma>
</fred>

<fred>
<wilma>
<pebbles> one </pebbles>
</wilma>
</fred>

to output as:

<fred>
<wilma>
<pebbles> one </pebbles>
</wilma>
</fred>

<fred>
<wilma>
<pebbles> two </pebbles>
</wilma>
</fred>

using <xsl:for-each> loops.

Thanks,
Antony









Antony Tomasovic


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread