Example 23. A predicate situated in the intermediate of an XPath expression like “/payInfo[amount>100]/creditCard” leads to two XPath expressions being generated after Step 2, which are “/ payInfo/amount” and “/payInfo/creditCard”. That is, “/ pay-Info[amount>100]/creditCard”⇒2 “/payInfo/amount” ∧ “/payInfo/creditCard”.

Let e'' denote an XPath expression returned after Step 2.

Step 3. Eliminate logical | and and operators in each XPath expression e'' by rewriting the expression into several ones logically connected with ∧ or ∨.

To match the notion of path in Definition 19, every XPath expression after Step 2 which contains the logical operators ...

Get Context-Aware Computing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.