[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Different results of format-date() when using empt

Subject: RE: Different results of format-date() when using empty seq. or omitting args for lang/cal/country args
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 2 Oct 2006 15:33:42 +0100
saxon date locale
> 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.