Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - sorting on date column in XSL [Thread Next] Re: sorting on date column in XSLTo: NULL Date: 3/18/2008 12:46:00 PM
Palwi wrote:
> I want to sort my data using XSl. I am using
> <xsl:sort select="*[name(.)=$SortCol]" order="{$SortOrder}" data-
> type="{$dataType}"/>
> this xommand for sorting
>
> But one of my column is of type date. so how do I specify the datatype
> for date. My date format is dd mon yyyy
XSLT 2.0 supports the xs:date data type but it has the format yyyy-mm-dd
so you would need to reorder your date strings.
With XSLT 1.0 you need to sort numbers or strings, you can do that also
by reordering your date strings in the format yyyymmdd.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
