Project

Profile

Help

Bug #4582

closed

format-date() with language="en-GB" prefixes the output with "[Language: en]"

Added by Michael Kay over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Localization
Sprint/Milestone:
-
Start date:
2020-06-12
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:
Platforms:

Description

Raised by direct email

Details: When we call format-date function, we pass language parameter as en-gb. I have changed it to en, then it works fine.

Documentation states: The $language argument specifies the language to be used for the result string of the function. The value of the argument should be either the empty sequence or a value that would be valid for the xml:lang attribute (see [XML]). Note that this permits the identification of sublanguages based on country codes (from [ISO 3166-1]) as well as identification of dialects and of regions within a country.

But it is not clear to me what format should I use for specifying sublanguages.

What format is supported by Saxon for language parameter of format-date function?

Any ideas for what is causing our problem with date strings handling?

Please register to edit this issue

Also available in: Atom PDF