0
我有以下XML源結構:XSL:如何總計?
<Bills>
<bill ID ="02">
<Product IDP="MH001" amount="10" price="20"/>
<Product IDP="MH002" amount="20" price="20"/>
<Product IDP="MH003" amount="30" price="20"/>
<Product IDP="MH004" amount="50" price="20"/>
<Product IDP="MH005" amount="60" price="20"/>
</bill>
<bill ID ="01">
<Product IDP="MH101" amount="10" price="20"/>
<Product IDP="MH102" amount="10" price="20"/>
<Product IDP="MH103" amount="20" price="20"/>
<Product IDP="MH104" amount="20" price="20"/>
<Product IDP="MH105" amount="10" price="20"/>
</bill>
</Bills>
HTMX視圖
如何計算總?
請幫忙。非常感謝
請張貼你到目前爲止... – har07
需要使用解析數據,則XSLT將其轉換爲int – Amitsharma