Menu

#8 Allow "and" of attribute test predicates

open
XPath (2)
6
2002-10-22
2002-10-22
No

(Requested by Denis Bohm.)

Currently the subset of the XPath language limits you
to one attribute test per step. We would like to
extend this to allow at least boolean anding of
attribute tests. We could extend the subset in one of
two ways to get this:

(1) Allow multiple predicates per step:

/a/b/c[@foo='ppp'][@bar='qqq']

(2) Allow boolean expressions in a predicate

/a/b/c[@foo='ppp' and @bar='qqq']

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.