xsl-list
[Top] [All Lists]

Re: [xsl] Sorting data after transformation is done

2008-04-29 08:50:10
Hi

2008/4/30 Michael Ludwig <mlu(_at_)as-guides(_dot_)com>:
 Can't you just preprocess the data in order to add an attribute @ts
 holding a good old UNIX timestamp, and another attribute, if needed,
 holding a value for display?

my aim was to quickly patch that software:
www.avenard.org/iptv/epg

which renders incorrectly programmes not in the same timezone as the client.

this is where I discovered XSLT and I liked the idea of processing
*everything* on the client side. Or so I thought!


 I think this could work, but I'd embed the XSLT part in a host language
 like Perl, PHP, or Java, and then use mktime and strftime (or their Java
 equivalents) to handle dates and times.
but I still need to work on the xml part, surely this is easier done with xslt

 I haven't checked this XSLT - but it's so much easier in other
 languages, which have all the functionality you need to handle dates.

it is indeed. it would take about 10 lines of code in python to
process the whole xml data and perform the time conversion (the time
conversion being 2-3 lines).
But, as an exercise, I wanted to do it in XSLT

Thanks
JY

--~------------------------------------------------------------------
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>