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

Re: sort by xsl:if and then sort using templates?

Subject: Re: sort by xsl:if and then sort using templates?
From: Rashmi Rubdi <dev_subscriptions@xxxxxxxxx>
Date: Mon, 20 Nov 2006 12:53:01 -0800 (PST)
Re:  sort by xsl:if and then sort using templates?
Which version of XSLT/XPATH? I dont think you can compare dates with &gt; in
XPATH1.0

You can't nest xsl:sort inside xsl:if.  
xsl:if can only be nested
under <xsl:apply-templates> and <xsl:for-each>

I think if you represent dates
in the standard format for example: 2005-05-07T19:30:00  instead of 05/07/2005
you can simply sort dates 
without having to extract the substrings of year,
month and day with reference to the code snippet you have provided.

like
this:
<xsl:apply-templates>
        <xsl:sort select="date"/>
</xsl:apply-templates>
_____________________________________________________________________________
_______
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo.
Calculate new payment! 
www.LowerMyBills.com/lre

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.