Am 27.10.2018 um 08:39 schrieb Wiemer, Sebastian:


How do I format german style numbers e.g.: 1.000.00,99€ (for one million € and 99cents) ?
The following approach:

format-number(26825.8, '#.###,00')

yielded an error: [FODF1310] Invalid picture string: '#.###,00'.


See https://www.w3.org/TR/xquery-31/#id-decimal-format-decl

declare decimal-format local:de
  decimal-separator = "," grouping-separator = ".";
format-number(26825.8, '#.###,00', 'local:de')