XPath 2.0仕様をサポートするxPathセレクター用のOxygen XMLTesterを使用しています。では、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']) with 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>