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/17/2008 11:05:00 PM On Mar 18, 9:56=A0am, Palwi <palwich...@gmail.com> wrote:
> hi
> I want to sort my data using XSl. I am using
> <xsl:sort =A0select=3D"*[name(.)=3D$SortCol]" order=3D"{$SortOrder}" data-=
> type=3D"{$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
1. you are using XSL 1.0 or 2.0?
2. If you are using xsl 1.0 this doesn't have datatypes like date,
time, integer, etc.
You split the date and sort it. e.g
<xsl:sort select=3D"substring-before(' ',date)" data-type=3D"number"/>
Regards,
Balaji. M
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
