













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














/ = the root directory /library = the root element (if named library )
/users/dave/foo = the (one) file named foo in dave in users
/library/book/chapter/section = every section element in a chapter in every book in the library
. = the current directory. = the current element
.. = the parent directory ..^ = parent of the current element
/users/dave/* = all the files in /users/dave
/library/book/chapter/* = all the elements in /library/book/chapter
foo = the (one) file named foo in the current directory
section = every section element that is a child of the current element
paragraph[1] paragraph[2]
section[1]
chapter[1] chapter[2] chapter[3]
book[1] (^) book[2]
library
self
ancestor
descendant
preceding
following
(none) is the same as child::
@ is the same as attribute::
. is the same as self::node()
.//X is the same as self::node()/descendant-or-self::node()/child::X
.. is the same as parent::node()
../X is the same as parent::node()/child::X
// is the same as /descendant-or-self::node()/
//X is the same as /descendant-or-self::node()/child::X
“greater than” Some places may require >
= “greater than Some places may require