Re: [xsl] Filtering/Removing Truly Duplicate Elements
| Subject: Re: [xsl] Filtering/Removing Truly Duplicate Elements From: "Wasiq Shaikh" <wasiq911@xxxxxxxxxxx>
 Date: Thu, 19 Jul 2007 09:18:20 -0400
 
 | 
Wow guys thats incredible! Thank you so very much for your help. I'm 
restricted to using XPath 1.0 due to compatibility issues with JBoss and our 
framework. But thanks to this neat little script courtesy of David is a 
blessing.
I knew I was supposed to use keys, but I wasn't using it properly. The
use="concat(@name,' ',@type)"
is brilliant! And I wasn't using generateID correctly either. If you could 
be so kind as to explain how this statement works, I would greatly 
appreciate it.
<xsl:for-each 
select="//xsd:element[generate-id()=generate-id(key('allElements',concat(@name,' 
',@type,' ',@ref)))]">
(dont mind the subtle changes)