This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: grouping and selecting
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] grouping and selecting
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 14 Jun 2001 09:28:29 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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