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

Re: Re: Sorting date in xsl

Subject: Re: Re: Sorting date in xsl
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Mon, 11 Jun 2001 00:02:04 +0100
Re:  Re: Sorting date in xsl

Dimitre Novatchev wrote:
> 
> 
> A third and the most natural approach is to use a generic template for a generic
> sort operation. You'll just pass to this generic template a template reference
> implementing the "greater than" relation for your format of dates.
> 
I'm not sure if it's an official generic template, but I have a generic
sort function (in fact two of them, but only one works correctly) at
http://redrice.com/xml/sortfunction_0_1.zip

Use sortcall.xslt on sort.xml, selecting the simple sort, to demonstrate
it.

The point is that you provide your own type-specific comparison template
and this gets called from your included sort template. There's a
standard way of calling the sort templates so that you can parameterise
the choice of method. It's quite a neat solution really.

Hope this helps.

Francis.

 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.