xpath2.0を使用しています。
変数に30分を追加したいと思います$orario
。
<tempi id="ID_1">
<orario_part>09:20:00</orario_part>
...
</tempi>
これは私のコードですが、機能しません。
<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>
望ましい結果は次のとおりです。
<time>09:50:00</time>
これどうやってするの?