RE: [xsl] Odd bug? in msxml3 xslt implementation

Subject: RE: [xsl] Odd bug? in msxml3 xslt implementation
From: Stephane Bailliez <sbailliez@xxxxxxxxxxxxxx>
Date: Tue, 27 Mar 2001 12:25:57 +0100
> -----Original Message-----
> From: Unico Hommes [mailto:Unico@xxxxxxxx]
[...]

> ... I wouldn't be able to use the above xslt since it only checks for
> equality to the previous item name, unless I found a way to 
> sort the items
> by item name in wich case I cannot use a the named template strategy I
> guess. Does anybody have a solution to this problem, is there 
> perhaps an
> xpath statement that would allow me to filter down my node 
> set of <item>s to
> only those that have unique item names, in wich case I could 
> use iteration ?

<xsl:apply-templates select="./item[not(./name =
preceding-sibling::item/name)]"/>

Unless I did a mistake, the above should do what you want (assuming you
sorted your itemlist based on item name)

Hope it helps.

-- 
 Stéphane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 



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


Current Thread