xPath2.0仕様をサポートするxPathセレクター用のOxygenXMLTesterを使用しています。それで、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>
現在、オンラインのXPath2.0テスター/アナライザーが次の場所にあります。
http://www.qutoric.com/xslt/analyser/xpathtool.html
これは実際には Saxon-CE XSLT 2.0プロセッサを裏で使用して実行されます(アプリはXSLT 2.0で作成されました)。評価された式を示すスクリーンショット:
ここでもう1つ便利なことがわかりました インタラクティブxpathテスター 。