to the main page... about these slides...

Patterns

- simple XPath expressions evaluating to node-sets.

A node matches a pattern if the node is member of the result of evaluating the pattern wrt. some context.
(Compare this with XPointer use of XPath.)


Typical structure:

pattern: location path | ... | location path
location path: /step/ ... // ... /step
step: axis nodetest predicate

Example:
  match="section/subsection|appendix//subsection"

matches subsection elements occuring either as child elements of section elements or as descendants of appendix elements.




More precisely:

(The whole XPath language is used for expressions later...)