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

Re: SUMMARY: Re: Sorting on a variable

Subject: Re: SUMMARY: Re: Sorting on a variable
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Tue, 17 Oct 2000 19:22:32 -0400
Re: SUMMARY: Re: Sorting on a variable
At 11:26 AM 10/17/2000 +0000, David Carlisle wrote:
[...snip...]
    <xsl:apply-templates select="product">
       <xsl:sort select="
                concat('0',price[@curr='USD']) +
                concat('0',price[@curr='GBP']) *1.47275  +
                concat('0',price[@curr='EU']) * 0.864379 "
             data-type="number" />
     </xsl:apply-templates>

[...snip...]
    <td align="right"><xsl:value-of select="
         format-number(
                concat('0',price[@curr='USD']) +
                concat('0',price[@curr='GBP']) *1.47275  +
                concat('0',price[@curr='EU']) * 0.864379 ,
    '#,##0.00')
"/></td>

Y'know, you keep coming up with the damnedest things... I've seen messages from Dave Pawson alluding to this, but I can't help wondering what sort of twists your mind must be capable of, if you can dash off solutions like this. :)


Thanks very much, David!

===============================================================
John E. Simpson | "He asked me if I knew what
http://www.flixml.org | time it was. I said, 'Yes, but
XML Q&A: http://www.xml.com | not right now.'" (Steven Wright)



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.