[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|