Format list of dates individually

This is already done for the HTML visualisation in
library/src/main/resources/stylesheets/xrechnung-html.de.ids.xsl:1584 ff

Fixes #413
Fixes #557
Fixes #765
This commit is contained in:
Felix Eckhofer
2025-09-08 21:38:33 +02:00
parent dadf0de4b0
commit 2e96ea6048

View File

@@ -194,7 +194,12 @@
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:choose> <xsl:choose>
<xsl:when test="$field-mapping-identifier = 'xr:Payment_due_date'"><xsl:value-of select="format-date(xs:date(.), xrf:_('date-format'))"/></xsl:when> <xsl:when test="$field-mapping-identifier = 'xr:Payment_due_date'">
<xsl:for-each select="tokenize(., ';')">
<xsl:value-of select="format-date(xs:date(.), xrf:_('date-format'))"/>
<xsl:if test="position() != last()">; </xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:otherwise> </xsl:otherwise>