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

Re: Concatenating a nodeset (set of attributes)

Subject: Re: Concatenating a nodeset (set of attributes)
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Tue, 11 Oct 2005 09:23:09 +0200
Re:  Concatenating a nodeset (set of attributes)
Even better...


Anton Triest wrote:

Just a thought - couldn't you just use multiple sort keys? Like

<xsl:template match="TOC">
 <xsl:apply-templates select="STRUCT">
   <xsl:sort select="@pos" data-type="number"/>
   <xsl:sort select="STRUCT/@pos" data-type="number"/>
   <xsl:sort select="STRUCT/STRUCT/@pos" data-type="number"/>
   <xsl:sort select="STRUCT/STRUCT/STRUCT/@pos" data-type="number"/>


Geert Josten wrote:

The depth of the STRUC elements is arbitrary.

If you know there is a resonable limit to the recusion depth you could do the following:

<xsl:sort select="number(concat(@pos, '.', STRUCT/@pos, STRUCT/STRUCT/@pos, STRUCT/STRUCT/STRUCT/@pos, ...)" data-type="number" />

Otherwise I would suggest a multistep process or refering to extensions..


-- Drs. G.P.H. Josten Consultant

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199

De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

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.