Pattern Examples

para

Matches all <para> children in the current context

para/emphasis

Matches all <emphasis> elements that have a parent of <para>

/

Matches the root of the document

para//emphasis

Matches all <emphasis> elements that have an ancestor of <para>

section/para[1]

Matches the first <para> child of all the <section> children in the current context

//title

Matches all <title> elements anywhere in the document

.//title

Matches all <title> elements that are descendants of the current context