小编Dan*_*ean的帖子

XSLT:基于其他属性名称的特定属性值的总和

我有以下XML文档(由另一方提供)

<transactions>
  <transaction TaxAType="11" TaxAValue="111" TaxBType="2" TaxBValue="222" TaxCType="3" TaxCValue="333"/>
  <transaction TaxAType="11" TaxAValue="111" TaxBType="2" TaxBValue="222" TaxCType="3" TaxCValue="333"/>
</transactions>
Run Code Online (Sandbox Code Playgroud)

我想编写一个XSLT文档来转换这些行,并总结Tax*Value,例如相应的Tax*Type ='11'.

这是不是可以使用模板?

XQuery中的name(),substring()等函数?你对此有何看法?

xml xslt xslt-1.0

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

xml ×1

xslt ×1

xslt-1.0 ×1