Loading

XPath notation

XPath notation used in this specification

A simple subset of the XPath language [XPath] is used in the description of an element, attribute or value to identify other elements, attributes and/or values.

The simple subset of XPath used is:

  • Element subelement hierarchy is indicated by a slash.

    For example: element/element

  • Element attribute hierarchy is indicated by a slash and an at (@) symbol.

    For example: element/@attribute

  • Paths beginning with a single slash: '/' indicate root elements.

    For example: /JDF indicates the root JDF node

  • Paths beginning with a double slash '//' indicate elements with any parent.

    For example: //ResourcePool indicates a ResourcePool element in any element

  • Paths containing square brackets that enclose a predicate describe an element that is restricted by the predicate.

Different types of predicates are used in this document:

  • E[@A = V]

    The XPath specifies an element E whose attribute A has the value V.

  • E[contains(@A = V)]

    The XPath specifies an element E whose attribute A has some value that contains V.

  • E[@A]

    The XPath specifies an element E in which attribute A is present.