xsl-list
[Top] [All Lists]

RE: format-dateTime localised picture parameters long medium short

2003-11-13 05:55:35
I think it would be quite easy to define a library of functions that
package the date formatting facilities in this way, but I don't think
there's any need to put this in the core language. If you think there
are inadequacies in the format-date() facilities provided in the latest
(12 Nov) XSLT 2.0 working draft, or if you can suggest specific
improvements, then the place to send them is 
public-qt-comments(_at_)w3(_dot_)org(_dot_)

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Richard Zschech
Sent: 13 November 2003 10:35
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] format-dateTime localised picture parameters 
long medium short


|Would it be posible to define special picture parameters for the date
and time formatting methods such as "long" "medium" "short". The XSL 
processor can use this in combination with the language and country 
parameters to produce a localized format for a particular locale.

An example of this is the java class 
java.util.text.DateFormat which can 
produce DateFormats based on the styles DateFormat.LONG,|| 
DateFormat.||MEDIUM,|| DateFormat.||SHORT and a 
java.util.Locale which 
can be constructed from the language and country.

Another example is C#'s String.Format with D,d,T,t,F,f for long and 
short date, time, date and time.

Another example is in vb with DateFormat Enumeration's ||vbLongDate, 
||vbShortDate, ||vbLongTime and ||vbShortTime.

This will allow authors of style sheets to format dates and 
times based 
on a users preferred formats and not have to hard code formats in 
stylesheets.

A similar thing could be done with number formats.
|


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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