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: grouping and selecting


>             In the below code
> 
> <xsl:for-each select="//ID[not(. = following::ID)]">
>            <ID><xsl:value-of select="."/></ID>
> </xsl:for-each>
> 
> this gives me all the unique ID's without repeating but i 
> even want to get 
> other elements values without repeat whose id is the same as 
> above how do we 
> do that.

Just replace "ID" by "*" and <ID> by <xsl:copy> - or have I misunderstood?

Mike Kay
Software AG

 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]