This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Odd bug? in msxml3 xslt implementation


> -----Original Message-----
> From: Unico Hommes [mailto:Unico@hippo.nl]
[...]

> ... 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]