[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Sorting data after transformation is done

Subject: Re: Sorting data after transformation is done
From: "Jean-Yves Avenard" <jyavenard@xxxxxxxxx>
Date: Wed, 30 Apr 2008 01:49:33 +1000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.