| Subject: Re: [xsl] Selecting distinct values based on an attribute From: kalpana rawat <kal_xml@xxxxxxxxx> Date: Tue, 25 Sep 2001 15:59:54 -0700 (PDT) | 
I'm using same thing on Orion server and Xalan, Xerces but I have a strange problem. This thing doesn'work when in Java using JDOM, but when i run the same program usinf XML and XSL it works great. I'm not a Java programmer and don't understand why is it occuring. Thanks for your valuable comments. --- Perry Molendijk <perry@xxxxxxxxxxxxxx> wrote: > > > <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: [xsl] 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 > __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Selecting distinct values, Perry Molendijk | Thread | [xsl] conversion problem, Andreas Putscher | 
| Re: [xsl] Equals (=), Wendell Piez | Date | [xsl] Tokenising the string using x, Avula, Raj | 
| Month |