Parameter syntax:
'parent' | 'child' | 'firstChild' | 'lastChild' | 'children' | 'previousSibling' | 'nextSibling' | 'firstSibling' | 'lastSibling' | 'ancestor' | 'ancestorOrSelf' | 'self' | 'descendant' | 'descendantOrSelf' | 'preceding' | 'precedingOrSelf' | 'following' | 'followingOrSelf' | 'extendToPreviousSibling' | 'extendToNextSibling' [ 'OrNone' | 'OrNode' | 'OrElement' ]? [implicit_selection
]? S [element_name
| '#text' | '#comment' | '#processing-instruction' ]*
A number of keystrokes are bound to this command. This command is also needed to write non-trivial macro-commands.
Selects parent of selected node.
Selects previously selected child of selected node.
If no child of selected node was previously selected, selects first child node of selected node.
Selects first child node of selected node.
Selects last child node of selected node.
Selects all the child nodes of selected node.
Selects preceding sibling of selected node.
Selects following sibling of selected node.
Selects first preceding sibling of selected node.
Selects last following sibling of selected node.
Selects selected node if selected node is an element, or parent element of selected node if selected node is a text. This option is mainly useful to test the name of implicitly or explicitly selected element.
Selects ancestor of selected node, starting at selected node. Searched ancestor is specified using a list of names. See below.
More precisely, lookup starts from selected node, if selected node is an element, or from parent element of selected node if selected node is a text, comment or processing-instruction node.
Selects ancestor of selected node, starting at parent of selected node. Searched ancestor is specified using a list of names. See below.
More precisely, lookup starts from parent of selected node, if selected node is an element, or from grand-parent element of selected node if selected node is a text, comment or processing-instruction node.
Note that selectNode.ancestor*
selects all the ancestors one after the other until it reaches the found ancestor. This is equivalent to interactively typing Ctrl+Up until the desired ancestor is selected. The idea behind that is to be able to use selectNode ancestor
followed by selectNode child
or selectNode descendant*
in the same macro-command.
Selects previously selected descendant of selected node. Searched descendant is specified using a list of element names or node types. See below.
If no descendants of selected node were previously selected, searches a descendant node along the first child axis.
Selects previously selected descendant of selected node. Searched descendant is specified using a list of element names or node types. See below.
If no descendants of selected node were previously selected, searches a descendant node along the first child axis.
Selected node itself can be explicitly selected if it corresponds to searched node.
Selects preceding sibling of selected node, starting at selected node. Searched sibling is specified using a list of names. See below.
Selects preceding sibling of selected node, starting at sibling of selected node. Searched sibling is specified using a list of names. See below.
Selects following sibling of selected node, starting at selected node. Searched sibling is specified using a list of names. See below.
Selects following sibling of selected node, starting at sibling of selected node. Searched sibling is specified using a list of names. See below.
Extends node selection to following sibling of last selected node.
Extends node selection to preceding sibling of last selected node.
Examples:
selectNode childOrNone selectNode parentOrNode selectNode children selectNode nextSibling[implicitElement] selectNode self section selectNode ancestorOrSelf[implicitElement] section sect5 sect4 sect3 sect2 sect1 selectNode descendant {http://www.xmlmind.com/xmleditor/schema/configuration}template \ {http://www.xmlmind.com/xmleditor/schema/configuration}css selectNode extendToPreviousSibling selectNode extendToNextSiblingOrElement