![]() ![]() |
![]() ![]() ![]() |
The central construct is the location path, which is a sequence of location steps separated by /.
Each node resulting from evaluation of one step is used as context for evaluation of the next, and the results are unioned together.
(Location paths starting with / always use the document root as initial context node!)
Example:
child::section[position()<6]/descendant::cite/attribute::href |
selects all href attributes in cite elements in the
first 5 sections of an article.