How is date:date-format used?
Hack Kampbjørn <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
We have an XML date that should be formated in either danish or english. Right now we the default locale is danish so date:format-date() produces danish day and month names. Looking at the web-site there is the element date:date-format to address this issue. After reading the documentation several times I cannot figure out how to use it. http://www.exslt.org/date/elements/date-format/index.html Google gave me this old mail that references decimal-format and format-number which takes an optional third argument that is the decimal-format name. If this is the idea and the format-date documentation has not been updated with the third date-format argument? <date:date-format name="danish" lang="da"/> <date:date-format name="english" lang="en"/> <xsl:value-of select="date:format-date(departure_time, 'EEE dd MMM YYYY', danish)"/> <xsl:value-of select="date:format-date(departure_time, 'EEE dd MMM YYYY', english)"/> http://lists.fourthought.com/pipermail/exslt/2001-April/000022.html Hack Kampbjørn 2M business application a|s +45 3956 3955 +45 3953 0780