[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Selecting distinct values based on an attribute
<xsl:for-each select="facilities[not(@facilitytype = preceding::facilities/@facilitytype)]"> <xsl:sort select="@facilitytype" order="ascending" /> <xsl:value-of select="@facilitytype"/> </xsl:for-each> Perry ----- Original Message ----- From: Adam Darwin To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Sent: Tuesday, September 25, 2001 5:27 PM Subject: Selecting distinct values based on an attribute I have the following xml <facilities facilitytype="pub" .... /> <facilities facilitytype="pool" .... /> <facilities facilitytype="bar" .... /> How can i Select all the facilitytype and order them so that regardless of what order I get them in it will always look the same (order is arbitrary) all help is much appreciated. regards, Adam ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|