Questions about date:parse-date(), date:format-date() and date:date-format
险峰 张 <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am new to EXSLT. Now I am planning to implement the "dates and times" in EXSLT.
When I read the specifications for date:format-date() and date:parse-date(), I am a little confused.
They look somewhat redundant to me. If I implement the date:format-date(), it seems to cover what date:parse-date() can do.
For example: date:format-date("2005-06-03", "yyyy") is the same as date:parse-date("2005-06-03", "yyyy"). Am I right?
Currently, is there any xslt processor to support date:parse-date()? I saw the reference implementation by Chris Bayes (http://www.exslt.org/date/functions/parse-date/date.msxsl.xsl).
However, the implementation is different with specification. In specification it has 2 arguments. In Bayes's implementation, there are 3 arguments. What did cause the difference?
Another question is about date:date-format element. Is there any sample or any reference implement for it? It's hard to understand it for me only from specification on exslt.org. -Thanks
Allan
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list