Edit Expression

Top Previous Topic Next Topic  Print this topic

Overview: This dialog can be used for editing and assigning XPath expressions to a range of features. It can only be used for dynamic elements from input XML file.

 

Accessing: The dialog is displayed when using dynamic data in the document.

 

It is used in the following scenarios:

when fields/repeating sections/inline repeats/inline conditions/conditional sections/dynamic page sets are inserted
if dynamic values are used for inserting external objects
when setting dynamic properties for different objects etc.

 

For dynamic elements, there are multiple options for displaying the dialog:

selecting the XPath button located in the Data group under the Home tab
right-clicking on the dynamic element and choosing Edit Field/Section XPath
right-clicking on the dynamic element from the Navigation Bar and choosing Edit Field/Section XPath

 

 

Edit_expression

 

IMPORTANT: The XPath expression is created relative to the context node. The condition is inserted at a location within this context and the XPath expression will be evaluated with this node as its context.

 

XML Data, Functions (Built-In, Node-Set, String, Arithmetical, User Defined Functions), Operators (Arithmetical, Boolean, Logical, Grouping/Filtering, Comparison) Constants (Arithmetical, Boolean, Logical) to edit the expression and Parameters (Local Time and Date) can be used.

Also, shortcuts to the arithmetical operators are available. The further displayed icons have the following functions:

 

dialog_xpath_edit02

Undo: navigates to the previous editing action.

dialog_xpath_edit05

Redo: navigates to the initial editing action, previous to the "Undo" command.

dialog_xpath_edit04

Validation: checks the validity of the expression and signals the possible errors.

dialog_xpath_edit03

Home: navigates to the root node.

   

   

To include an element in the expression, the Working Object must be selected and then the desired element double-clicked.

The XML configuration can be expanded when selecting the image011 button. The image012 button can be used for navigating in the XML tree to the previous node.