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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.