Subject: Re: [xsl] Sorting data after transformation is done From: "Jean-Yves Avenard" <jyavenard@xxxxxxxxx> Date: Wed, 30 Apr 2008 01:49:33 +1000 |
Hi 2008/4/30 Michael Ludwig <mlu@xxxxxxxxxxxxx>: > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Sorting data after transf, Michael Ludwig | Thread | [xsl] [XSL] Grouping and Sum proble, Mike Finch [Wasabeat |
Re: [xsl] [XSL] Grouping and Sum pr, Michael Ludwig | Date | [xsl] xsl:element start/end tags wh, Peter . A . Lom |
Month |