Edit XPath Expression Dialog

www.altova.com Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  User Reference >

Edit XPath Expression Dialog

The Edit XPath Expression dialog (screenshot below) is used to create and edit XPath expressions for a range of StyleVision features. The dialog automatically supports the XPath version according to which XSLT version has been selected for the SPS being currently edited (XPath 1.0 for XSLT 1.0, XPath 2.0 for XSLT 2.0, and XPath 3.1 for XSLT 3.0).


The Edit XPath Expression dialog has two modes: (i) Builder mode, for creating XPath expressions, and (ii) Evaluator mode for checking the result of the XPath expression being currently edited. You can switch between the two modes by clicking the respective buttons (Builder and Evaluator).


Click OK when you have completed editing the XPath expression.


Builder mode

In Builder mode, you can build XPath expressions quickly and correctly by either (i) entering the XPath expression in the Expression text box via the keyboard, or (ii) using the entry helpers of Builder mode to  insert nodes, operators, and functions by double-clicking them from their respective lists (see screenshot below). When an expression that has been entered in the Expression text box contains errors, the expression is underlined in red, thus alerting you to the problem. Builder mode is described in detail in the section, XPath Expression Builder.


Click to expand/collapse


Evaluator mode

In Evaluator mode, you can see, in the Results pane on the right-hand side of the dialog (see screenshot below), the results of evaluating the currently entered XPath expression. The Evaluation Context pane shows the structure and contents of the currently assigned Working XML document. The Edit XPath Expression dialog's Evaluator mode is described in detail in the section, XPath Expression Evaluator.


Click to expand/collapse




© 2019 Altova GmbH