context_string
context_string ([doc])
This function returns a string describing the context of the cursor in the current window. This string consists of a list of element names and parentheses, such as:
doc(body(chapter(title()para0(title()para(
The left parenthesis following an element name represents a start tag, and the right parenthesis represents the end tag for the corresponding unmatched start tag. If the cursor is before the opening start tag or if context checking is not relevant for the current document, a null string will be returned.
|
Even if you have applied an alias map to the document, this function will return an element's real name, not its alias.
|
The doc argument specifies the identifier of the document tree to be queried. If omitted or 0, the current document is used.