[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
|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.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] format-dateTime localised picture parameters long medium short
Subject: [xsl] format-dateTime localised picture parameters long medium short From: Richard Zschech <richard.zschech@xxxxxxxxxxx> Date: Thu, 13 Nov 2003 10:34:56 +0000 |
|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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Best XSLT designer, Mikhail Grushinskiy | Thread | [xsl] Node test--> text -->differen, Barry van Weldam |
RE: [xsl] Outline a header, Andreas L. Delmelle | Date | [xsl] Node test--> text -->differen, Barry van Weldam |
Month |
Keywords