- Changed to more correct date picture strings (according to the XSLT spec at
least).
1 parent e1f65e5 commit 2ab97b74d77bdc9b713e8646a0763e3d7e49b8db
nstanger authored on 12 Jun 2012
Showing 1 changed file
View
4
modules/build-date.xml
<xsl:param name="format" />
<xsl:choose>
<xsl:when test="$format = 'short'">
<xsl:sequence select="format-dateTime( $date-built, '[Y,4]-[M,2]-[D,2]' )" />
<xsl:sequence select="format-dateTime( $date-built, '[Y0001]-[M01]-[D01]' )" />
</xsl:when>
<xsl:when test="$format = 'long'">
<xsl:sequence select="format-dateTime( $date-built, '[Y,4]-[M,2]-[D,2] [H,2]:[m,2]:[s,2]' )" />
<xsl:sequence select="format-dateTime( $date-built, '[Y0001]-[M01]-[D01] [H01]:[m01]:[s01]' )" />
</xsl:when>
<!-- Assume it's a date picture string otherwise. -->
<xsl:otherwise>
<xsl:sequence select="format-dateTime( $date-built, $format )" />