Anatomy of a Location Step
child::
list
[count(descendent::item)
> 8]
Each location step has at least two parts (may have three)
- An axis (
child::
)
- Where are you going (in relation to the evaluation context)?
- A node test
(the name of an element “
list
”)
- What kind of node do you want?
- Zero or more predicates
[count(descendent::item) > 8]
- What other conditions must be true of these nodes?
Location Step = axis:: + nodetest +
[predicate]*