Predicates

Each location step can contain zero or more predicates that further restrict which nodes an XPointer points to. In most non-trivial cases a predicate is necessary to pick the one node from a node set that you want. Each predicate contains an expression in square brackets ([]) that further winnows the node set. This allows an XPointer to select nodes according to many different criteria. For example, you can select:

These are just a small sampling of the selections that predicates make possible.


Previous | Next | Top | Cafe con Leche

Copyright 1999 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified October 10, 1999