This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Eliminating Duplicate Elements
- From: Antony dot Tomasovic at csiro dot au
- To: XSL-List at lists dot mulberrytech dot com
- Date: Wed, 14 Aug 2002 14:33:13 +1000
- Subject: [xsl] Eliminating Duplicate Elements
- Reply-to: xsl-list at lists dot mulberrytech dot com
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