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

Re: reverse sorting

Subject: Re: reverse sorting
From: "sascha" <sascha@xxxxxxxxxx>
Date: Tue, 30 Jul 2002 12:53:51 +0200
reverse sorting
THAT's what i needed,

thank you very much! :-)

Sascha


----- Original Message -----
From: "Thomas Bayer" <bayer@xxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 30, 2002 12:39 PM
Subject: AW:  reverse sorting


Hi,

nest a xsl:sort Element in xsl:for-each and use position() as expression for
sorting.

<xsl:for-each
select="PROCESS_DESCRIPTION_SHEET/PAGE_HEADER/PATH_LIST/PATH_ELEM">
    <xsl:sort select="position()" order="descending"/>
    <xsl:value-of select="."/>
</xsl:for-each>


Thomas
Orientation in Objects,
http://www.oio.de


> -----Ursprüngliche Nachricht-----
> Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von sascha
> Gesendet: Dienstag, 30. Juli 2002 11:35
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff:  reverse sorting
>
>
> Hi,
>
> is it possible to sort this input in reverse order?
>
> <PATH_LIST>
>    <PATH_ELEM>last entry</PATH_ELEM>
>    <PATH_ELEM>Operartive Prozesse</PATH_ELEM>
>   <PATH_ELEM>Angebot, Verhandlung, Vertragsabschluss</PATH_ELEM>
>   <PATH_ELEM>first entry</PATH_ELEM>
> </PATH_LIST>
>
> so that the output looks like
>
>
> - first entry
> - Angebot, Verhandlung, Vertragsabschluss
> - Operartive Prozesse
> - last entry
>
>
> actually my template looks like this:
>
> ..
> <xsl:for-each
> select="PROCESS_DESCRIPTION_SHEET/PAGE_HEADER/PATH_LIST/PATH_ELEM">
>     <xsl:value-of select="."/><fo:block/>
> </xsl:for-each>
>
> ..
>
> thanks again,
> sascha
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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
  • reverse sorting, (continued)
    • sascha - Tue, 30 Jul 2002 06:19:29 -0400 (EDT)
      • Roelf Jansen - Tue, 30 Jul 2002 06:31:46 -0400 (EDT)
        • sascha - Tue, 30 Jul 2002 06:38:50 -0400 (EDT)
      • Thomas Bayer - Tue, 30 Jul 2002 06:39:44 -0400 (EDT)
        • sascha - Tue, 30 Jul 2002 06:49:50 -0400 (EDT) <=

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.