xsl-list
[Top] [All Lists]

RE: [xsl] attribute based sorting

2009-10-29 05:15:43

 
<COLUMN NAME="Join_date">28-Oct-1987</COLUMN>

date format will be in DD-MMM-DDDD, what is the good approach 
to sort this kind of dates.


This seems to be a classic case where you should be using a pipeline
architecture: a series of transformations. First transform your data to
"clean" XML, that is, to

<Join_date>1987-10-27</Join_date>

and then the real processing all becomes much easier. The advantage of
splitting the transformation into phases is that the "clean-up" phase is
reusable, and independent of the subsequent processing you want to perform.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>