xsl-list
[Top] [All Lists]

RE: GMT to BST converter

2005-04-15 05:04:38

Before you can convert the date/time you have to parse it. EXSLT has a
date:parse-date() function but it's not widely implemented. I think I would
escape out to an extension function for this one.

XSLT 2.0, for once, doesn't help you here, at least not directly.

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

-----Original Message-----
From: tom tom [mailto:tomxsllist(_at_)hotmail(_dot_)com] 
Sent: 15 April 2005 12:21
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] GMT to BST converter

I need to write a template in XSLT 1 that converts a GMT 
feed, for example:

<Date>Tuesday, 18 February, 2003, 15:21 GMT</Date>

to British summer time. I don't want to have to update it 
every 6 months! 
Has anyone done this before?

Thanks

Tom

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
http://toolbar.msn.co.uk/


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





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