[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selecting distinct values based on an attribute

Subject: Re: Selecting distinct values based on an attribute
From: "Perry Molendijk" <perry@xxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2001 23:45:49 +0800
xalan distinct values

<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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.