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

Re: ordering nodes

Subject: Re: ordering nodes
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Mon, 30 Jan 2006 09:51:27 +0000
Re:  ordering nodes
On 1/29/06, bokluk <bokluk@xxxxxxx> wrote:
> <section label="ligostart">
>         <section uri="erzaehlen.html" label="erzaehlen">
>                 <section uri="dererzaehltext.html" label="dererzaehltext">
>                         <section
> uri="dertextalssprachlicheszeichensystemdiscours.html"/>
>                 </section>
>         </section>
> </section>
> dererzaehltext.XML:
> ....
> <definition title="Der Erzdhltext" label="dererzaehltextdef">
>                         <LMMLtext>blablabla</LMMLtext>
> </definition>
> <definition title="Der Erzdhltext2" label="dererzaehltext2def">
>                         <LMMLtext>blabla</LMMLtext>
> </definition>
> .....
> Other XML's mentioned in LIST.XML have the same structure as above.
> I need to extract this definitions out of every file and create one html
> with all of them ordered alphabetically.
> P.S. I'm using cocoon 2 processor

I'm not familiar with the cocoon 2 processor, but if it's an XSLT 2.0
processor you can use:

<xsl:for-each select="for $x in
			return $x//defnition">
  <xsl:sort select="youdidntsay"/>

...where pathToXMLDirectory is the path of the directory containing
the XML and youdidntsay is the value to use in the sort :)

Sorry the answer is a bit vague, but the question is a bit vague too.

Current Thread


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.
First Name
Last Name
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.