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

Re: Recursive teplate (sort)

Subject: Re: Recursive teplate (sort)
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 9 Oct 2006 10:38:14 +0100
teplate free down load
On 10/9/06, Giancarlo Rossi <giancarlo_rossi@xxxxxxxxxx> wrote:

I have just this situation :



<xsl:template match="/"> <xsl:for-each select="/root" > <xsl:for-each select="my_node" > <xsl:for-each select="my_node_parallel" >

Why not use?


select="/root/my_node/my_node_parallel">

<!--I Create Variable and calculate value for totale_finale-->
<--!I need to order using totale_finale value -->

<xsl:value-of select="format-number($totale_finale,'#.##')" />

You will to use the same expression in the sort as in the variable, eg:


<xsl:for-each select="/root/my_node/my_node_parallel">
 <xsl:sort select="... same as the select for $totale_finale...."/>
 <xsl:variable name="total_finale" select="..........."/>

It would be nice if xsl:variable was allowed before xsl:sort, but its not.

cheers
andrew

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.