xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] 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

> 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor