fixing day of week
This commit is contained in:
parent
4bfc6faffd
commit
000d9fc5d6
16
xsl/date.xsl
16
xsl/date.xsl
|
@ -256,6 +256,8 @@
|
|||
<!--xsl:param name="seconds" /-->
|
||||
|
||||
<xsl:variable name="dayofweek">
|
||||
<!-- http://www.xsltfunctions.com/xsl/functx_day-of-week.html -->
|
||||
<!-- functx:day-of-week returns the day of the week as a number, where 0 is Sunday, 1 is Monday... -->
|
||||
<xsl:value-of select="date:day-in-week($date)"/>
|
||||
<!--xsl:call-template name="get-dayofweek">
|
||||
<xsl:with-param name="seconds" select="$seconds" />
|
||||
|
@ -263,13 +265,13 @@
|
|||
</xsl:variable>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$dayofweek = 2">Montag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 3">Dienstag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 4">Mittwoch</xsl:when>
|
||||
<xsl:when test="$dayofweek = 5">Donnerstag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 6">Freitag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 7">Samstag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 1">Sonntag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 0">Sonntag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 1">Montag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 2">Dienstag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 3">Mittwoch</xsl:when>
|
||||
<xsl:when test="$dayofweek = 4">Donnerstag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 5">Freitag</xsl:when>
|
||||
<xsl:when test="$dayofweek = 6">Samstag</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user