0
我的輸入如下所示。XSLT 2.0,我想將所有變量值添加到一個變量中,然後顯示
<XSL:variable name = "TotalAmount" >
<text>10;20;20;30;55.....</text>
</xsl:variable>
我期待的輸出像下面
輸出:135(全部由分離出的值的和 ';')
我的輸入如下所示。XSLT 2.0,我想將所有變量值添加到一個變量中,然後顯示
<XSL:variable name = "TotalAmount" >
<text>10;20;20;30;55.....</text>
</xsl:variable>
我期待的輸出像下面
輸出:135(全部由分離出的值的和 ';')
你可以計算sum(tokenize($totalAmount/text, ';'))
。