<xsl:template name="getDateFormated">
<xsl:param name="aVal"/>
<xsl:variable name="vDatePart">
<xsl:call-template name="getDate">
<xsl:with-param name="aVal" select="$aVal"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="'' != $vDatePart and 'fr' = $vLg">
<!-- out : 'DD/MM/YYYY' -->
<xsl:value-of select="concat(substring($vDatePart, 9, 2), '/', substring($vDatePart, 6, 2), '/', substring($vDatePart, 1, 4))"/>
</xsl:when>
<xsl:when test="'' != $vDatePart">
<!-- out : 'MM DD YYYY' -->
<xsl:value-of select="concat(substring($vDatePart, 6, 2), ' ', substring($vDatePart, 9, 2), ' ', substring($vDatePart, 1, 4))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$aVal"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> |