我有以下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>
我希望写一个XSLT文档,如果对应的Tax*Type='11',则转换这些行并汇总Tax*Value。
如果不使用模板,是否有可能实现这个功能?
XQuery中的name()、substring()等函数能否实现?您对此有什么想法?