Parameter syntax:
'parent' | 'child' | 'anyChild' | 'firstChild' | 'lastChild' | 'children' | 'previousSibling' | 'nextSibling' | 'firstSibling' | 'lastSibling' | 'ancestor' | 'ancestorOrSelf' | 'self' | 'descendant' | 'descendantOrSelf' | 'anyDescendant' | 'anyDescendantOrSelf' | '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.
Option |
Selects first found child node of selected node having a given element name or node type. How to specify the element name or node type searched for is explained in Section 94.1, “List of element names or node types”.
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 one_or_more_element_names
selectNode ancestor
followed by one_or_more_element_names
selectNode child
or selectNode descendant
in the same macro-command.one_or_more_element_names
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 but only along the first child axis. See also option anyDescendant
, which is more general.
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 but only along the first child axis. See also option anyDescendantOrSelf
, which is more general.
Selected node itself can be explicitly selected if it corresponds to searched node.
Selects first found descendant node of selected node having a given element name or node type. How to specify the element name or node type searched for is explained in Section 94.1, “List of element names or node types”.
Selects first found descendant node of selected node having a given element name or node type. How to specify the element name or node type searched for is explained in Section 94.1, “List of element names or node types”.
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