Hi All,
I want to subtract '2 hours' from a given time in xslt 1.
E.g.
Code:
<xsl:variable name="time">
<xsl:choose>
<xsl:when test="ns0:DepartureTime !=''">
<xsl:value-of select="ns0:DepartureTime"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'00:00:00'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
I want from this $time variable now subtract 2 hours and set it's value to an attribute.
Code:
<xsl:value-of select="$time"></xsl:value-of>
Could some please help?