Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml XSL:如何求和?_Xml_Xslt 1.0_Xls - Fatal编程技术网

Xml XSL:如何求和?

Xml XSL:如何求和?,xml,xslt-1.0,xls,Xml,Xslt 1.0,Xls,我有以下XML源结构: <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"/> <Produc

我有以下XML源结构:

<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视图

如何计算总数?

请帮忙。非常感谢

您可能会发现我在这里的回答很有帮助,因为它本质上是同一个问题:


请发布您目前拥有的XSLT…需要使用解析数据,然后将其转换为int