I am using xpath 2.0.
I want to add 30 minutes to the $orario variable.
<tempi id="ID_1"> <orario_part>09:20:00</orario_part> ... </tempi>
This is my code, but it does not work.
<xsl:template match="tempi"> <xsl:variable name="orario" select="./orario_part"/> <xsl:variable name="totale" select="xs:time($orario)+xs:time('00:30:00')"/> <time> <xsl:value-of select="$totale"/> </time> </xsl:template>
Below is the desired result:
<time>09:50:00</time>
How can i do this?
source share