date-format question

Blaine Garrett <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Hi,

Introductions... I am new to the list. Hopefully I will be able to contribute
quite a bit. I have been doing XSL dev for a few years now and really like what
is going on with the exslt libs.

Question :
I store dates in mysql in its datetime format (yyyy-mm-dd hh:mm:ss). I would
like to leave the formatting of the date up to the end user and thus do not
want to format the date at the mysql level, but rather at the XSL level. Thus I
installed the date:date-format library. However, the date-format template is
looking for the date in the format of yyyy-mm-ddThh:mm:ss (note the 'T' between
the date and time). Thus dates directly from mysql are not able to be formatted.

I found the line that cases out the 'T' and added an OR condition for a space
and it seemingly works fine now with mysql dates.

Could/should/would this be added to the main version?

Blaine






--
Blaine Garrett
Chief Web Applications Developer
JR Computer Associates INC
http://jrcorps.com
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.