[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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

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
Keywords
xml