Menu Edit Undo Search Next Previous Synchronize Documents |

### Menu Edit

> ### Undo

> A default shortcut Ctrl+Z

> By choosing this item, the user restores the current document to its status before the application of the last operation on it. The system supports up to 3 steps of structural undo (Removing, Renaming, Insertion, etc. of nodes) and unlimited number of text typing actions. Sometimes the Undo operation may need a little time, especially on large documents.

> ### Search

> A default shortcut Ctrl+F

> The edit field and the icon on the toolbar provide the same functionality.

> With this tool the user can search for nodes in the current active document exploiting the implemented XPath engine. The XPath expression is evaluated as a context node on the currently selected node in the tree view. Having evaluated the XPath expression, the system shows the result from this evaluation. The first node, that matches the query, is marked in both areas - the tree and the text. The other nodes in the list are saved in order to be selected when the user chooses Next and Previous.

> Here is the layout of the Search Manager:

> The dialog keeps as history the recently used XPath expressions and they can be used again by selecting an expression in the table. The user can rely on the help information XPath axes by clicking on Axes Info menu and then selecting names of the axes.

> ### Next

> A default shortcut F3

> An icon on the toolbar

> When choosing this item in the current view, the system moves the focus to the next element from the list of the elements, found by the last XPath search operation. In cases when no search operation was performed or the previous search result was unsuccessful, an error notification message is shown.

> ### Previous

> A default shortcut Shift-F3
> An icon on the toolbar

> When choosing this item in the current view, the system moves the focus to the previous element from the list of the elements, found by the last XPath search operation. In cases when no search operation was performed or the previous search result was unsuccessful, an error notification message is shown.

> ### Synchronize Documents

> This function gives the facility two or more documents with identical structures to be navigated in parallel in the editor. There is no restriction how many documents to be synchronized at the same time. The synchronized documents form a group in which, if the selection in one document is changed this causes a selection change in the rest group members.

> This feature is useful when documents have to be compared manually for some reason. Another application is when there is a set of documents representing parallel aligned data (in example, parallel corpora where each language is in a separate document).

> The synchronization, i.e. the distribution of the selection from one document to the others is done on the basis of the tree path location of the initially selected node. When a selection event is performed to a certain node, its path to the tree root is calculated, observing for each node in the path its preceding siblings' info. The calculation of this tree path results in an XPath expression which deterministically points to the selected node. In the next step, in all the rest synchronization group members this XPath expression is evaluated and if it returns a node, the corresponding document selection is moved to it. Otherwise, the document's previous selection is cleared. Thus if two documents are identical, for each node in one of them, there will be a corresponding node in the other one. If having selected a node in a document, the selection disappears in the other document(s), it means that this node is in a way unique for this document.

> This function is a light-weight version of the synchronization with rules defined in Definitions/Sync Rules and applied in Document/Synchronize with .... Here the node correspondence is fixed (the tree paths from the roots) but it is more efficient and the synchronization links are two-directional (i.e. a set of corresponding nodes can be selected in any of the documents containing them). In the other type of linking, the user defines the correspondence (XPath) relations and there is a distinction between documents (current vs. referred document).