[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sorting data after transformation is done
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|