So for information. This is not "possible".
See this document : http://www.saxonica.com/products/PD9.9/HE.pdf Chapter 8 > Run-time localization support for formatting of dates and numbers, and > sorting and comparison of strings, building on the capabilities of the Java > Virtual Machine. For more details see: Unicode collation, Localizing > numbers and dates. And regarding the PE edition : http://www.saxonica.com/products/PD9.9/PE.pdf Chapter 15 > Run-time localization support for formatting of dates and numbers, and > sorting and comparison of strings, building on the capabilities of the > ICU-J library. The Advanced level also includes APIs which allow additional > languages to be supported. So it is clear, with version HE of Saxon, no way to have localization functions on date in the XSL. Need to check how to do that now in other way. Etienne Jouvin Le ven. 13 déc. 2019 à 13:21, Etienne Jouvin <[email protected]> a écrit : > Hello all > > Currently working with XSL transformation. > With this, we can use a function format-dateTime like this : > format-dateTime(value, $dateFormatPattern, 'fr', (), ()) > > I try this with some online tools and everything work like a charm. > > Here, I try to force the local to have French label. > But in the result, I have something like : [Language: en]04 Jan. 2019 > > I found that Saxon is used to do transformation. > And some information on the document inform us that when locale is not > found, the english default locale is used. > And it requires to have ICU4J loaded to achieve the format. > > For now, I just tried to copy the ICU4J library, after download, in the > lib folder. But nothing better. > > I will try to put it in the nar file and see what happens. > > Does someone have the same requirements ? > > Regards > > Etienne Jouvin > >
