我为 xPath 选择器使用 Oxygen XMLTester,支持 XPath 2.0 规范。所以我想知道是否有任何在线测试人员使用 XPath 2.0 规范? http://www.xmlme.com/XpathTool.aspx [http://www.xmlme.com/XpathTool.aspx][2] http://www.xpathtester.com/test [http://www.xpathtester .com/test][3]
上述测试人员未能采用以下 XPAth(2.0 相当成功):/list/sum(item/prices/price[@currency='USD'])与 XML:
<list>
<item new='true'>
<title lang="en">Pop-Music DVD</title>
<author >K. A. Bred</author>
<year>2012</year>
<prices>
<price currency="USD">29.99</price>
<price currency="EUR">23.2</price>
</prices>
</item>
<item new='false'>
<title>Gone with the wind</title>
<author>M. Mitchell</author>
<year>1936</year>
<prices>
<price currency="USD">19.05</price>
<price currency="EUR">15</price>
</prices>
</item>
</list>