RE: How is date:date-format used?

Hack Kampbjørn <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Is there any example of how date:date-format is intended to be used? I would like to add support for it to Xalan but unfortunately the implementers page did not provide an example of using a named format.

Google is not much help as date-format matches date:format-date and "date:date-format" matches "date date format"


> -----Original Message-----
> From: Hack Kampbjørn 
> Sent: 1. november 2005 18:13
> To: [email protected]
> Subject: [exslt] How is date:date-format used?
> 
> 
> 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
> _______________________________________________
> exslt mailing list
> [email protected]
> http://www.exslt.org/list
>
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.