When you click Edit in any field that allows XPath Expressions, the
XPath Builder opens.
The XPath Builder supports alternative starting points:
- The XPath is not resolved relative to the root node of the XML document, but from
another XML element.
- When a proper JDF is used as the example XML, a list of possible starting points is
generated.
- The first possible starting point is automatically used to configure the XPath
builder.
- In this example, the XPath builder is used to create an XPath for a product part
attribute:
- The XPath builder automatically uses the first PageData node
as starting point. This is visualised by showing the content outside the
PageData node in grey.
- It is still possible to select nodes outside the PageData
node as result node or as predicate node.
- When selecting nodes outside the PageData node, the XPath
builder will create absolute XPaths.
- When you want, you can modify these absolute paths by making them relative to the
PageData node using ../
- While the XPath builder automatically selects the appropriate starting point, it is
still possible to manually change the starting point by clicking on another node while
holding down Command (Mac) or CTRL (Windows).