xsl-list
[Top] [All Lists]

Re: [xsl] Recursive teplate (sort)

2006-10-09 02:38:28
On 10/9/06, Giancarlo Rossi <giancarlo_rossi(_at_)tiscali(_dot_)it> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>