xsl-list
[Top] [All Lists]

RSS Feeds, Dates, Transformation with Exslt

2005-02-24 13:51:07
Hello,

Recently I attempted to transform the RSS pubDate using the Exslt
format-date function.  I was dissapointed to find out that the RSS
date format doesn't appear to be a valid XML date format.  Now, this
is something that I have come across before, not with RSS but with
data (dates) I was feading to an XML source from a database.  The
issue was that the field in the database was not an actual date field
but a character field, hence the date entered in this field was
something like "02-04-2004", a format not supported by the format-date
function in the MSXML extensions or EXSLT extensions (do we call these
extensions?).

So, what is the best way to handle dates?  Do you have to insure that
the date format is something like this:
YYYYMMDDTHH:MM:SSSS

Is there another way to get from weird date formates like this example:
<pubDate>Wed, 23 Feb 2005 16:12:56 GMT</pubDate>
..to a format that is recognizable by the parsers?

Karl

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



<Prev in Thread] Current Thread [Next in Thread>