Skip to content

tei2xelatex: format-date is not language specific #56

Open
kthoden opened this issue Nov 6, 2020 · 1 comment
Open

tei2xelatex: format-date is not language specific #56

kthoden opened this issue Nov 6, 2020 · 1 comment

Comments

@kthoden
Copy link

kthoden commented Nov 6, 2020

When using

<xsl:value-of select="format-date(xs:date(./tei:date/@when), '[D]. [MNn] [Y0001]', 'de', (), 'DE')"/>

with Saxon HE, the output is

[Language: en]13. July 2018

as explained on https://www.saxonica.com/html/documentation/functions/fn/format-dateTime.html

Workaround: use Saxon PE as delivered with XXE professional , but this has problems with some XSL statements:

Static error at char 11 in xsl:apply-templates/@select on line 87 column 89 of tei2xelatex.xsl:
  XTTE0520: Required item type of @select attribute of xsl:apply-templates is node();
  supplied value has item type xs:string
@kthoden
Copy link
Author

kthoden commented Nov 9, 2020

Oxygen has Saxon PE built in, while XXE doesn't have it. However, Saxon PE can only be used in the Oxygen GUI, not on command line: https://www.oxygenxml.com/forum/topic9816.html

NB, issue with xsl:apply-templates has been solved.

Sign in to join this conversation on GitHub.
Labels
None yet
Development

No branches or pull requests

1 participant