xsl-list
[Top] [All Lists]

RE: [xsl] Different results of format-date() when using empty seq. or omitting args for lang/cal/country args

2006-10-02 07:34:03
While trying to output a value as ISO calendar using a 
default language, I came across a little niche in the xslt 
specification that I find hard to interpret right.

It turns out in fact that if you call format-date() with two arguments,
Saxon defaults the language to:

* the language of the default Java locale provided that there is a Saxon
localization for this language

But if you supply () as the value of the third argument, Saxon defaults the
language to:

* the language of the default Java locale whether or not there is a Saxon
localization for this language

The default should be the same in both cases, I will fix this.

(I did some interesting but not very successful experiments trying to
configure my PC to use Dutch. All I achieved was to select a US keyboard
mapping, which doesn't match the keys on my keyboard...)

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--