Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のXMLフォーマットはこんな感じです。
<Rule id="MyRule"> <SubRule type="min" id="50" /> </Rule>
IDが50より大きいすべてのノードを取得するためのパスを作成しました
Rule[@id='MyRule']/subrule[@type='min' and @id>='50']
しかし、私は欲しいものを手に入れることができませんでした、それはただすべてのノードを返しました。
次のことを試しましたか(SubRuleと文字列比較の大文字と小文字を変更)?
Rule[@id='MyRule']/SubRule[@type='min' and compare(@id,'50')>=0]
あなたの数字はすべて2桁ですか?(「7」>「50」、「100」<「50」だと思います)
数字を比較したいだけなら、試してみてください
Rule[@id='MyRule']/SubRule[@type='min' and number(@id)>=50]