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

How do I sort using formula?

Subject: How do I sort using formula?
From: Vanessa Vendruscolo Nihues <vanessa@xxxxxxxxxxxxxxx>
Date: Mon, 24 Jan 2005 12:09:27 -0300
sort formula
Hi,

I created a table with the following fields:
1. Vendor's code
2. Vendor's name
3. Quantity of orders: count(orders)
4. Total of orders: sum(orders/total)

When the user clicks on the header of the table he can sort that column. In 
the xls I wrote:

<td title="Click here to sort this column" align="center"><div class="header" 
onClick="sort('code', 'number')">Code</div></td>

And to sort:

   <xsl:apply-templates>
        <xsl:sort select="*[name() = $FieldSort]" data-type="{$FieldType}" />
   </xsl:apply-templates>


It works to vendor's code and name, because "code" and "name" are tags in 
the xml. But how can I sort the quantity and total of orders?

I am using MSXML.

Thanks in advance,
Vanessa

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

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.