The Full Syntax

Instead of the abbreviated syntax of the previous slide, the full syntax allows some more specific ways of addressing content.

A location step consists of 3 parts.

  • An axis specifies a set of nodes, for instance the child axis contains all children of the context node.

  • A node-test can be used to specify the type of the nodes (node()/text()) or the name of specific nodes.

  • Predicates can be used to further filter the set of nodes.

  • A step is separated using a '/'.