Download Oxygen XML Author 12.2

Transcript
Oxygen XML Author | Editing Documents | 69
In addition to simple element names, both the Preserve space elements (XPath) list and the Strip space elements (XPath)
one accept a restricted set of XPath expressions to cover a pattern of XML elements with only one expression. The
allowed types of expressions are:
//xs:documentation
/chapter/abstract/title
//section/title
the XPath descendant axis can be used only at the beginning of the expression; the
namespace prefix can be attached to any namespace, no namespace binding check
is performed when applying the pretty-print operation
note the use of the XPath child axis
the descendant axis can be followed by the child axis
The value of an xml:space attribute present in the XML document on which the pretty-print operation is applied always
takes precedence over the Preserve space elements (XPath) and the Strip space elements (XPath) lists.
Viewing Status Information
Status information generated by the Schema Detection, Validation, Automatic validation and Transformation threads
are fed into the Console view allowing the user to monitor how the operation is being executed.
Figure 34: The Console view messages
Messages contain a timestamp, the name of the thread that generated it and the actual status information. The number
of displayed messages in the Console view can be controlled from the Options panel.
XML Editor Specific Actions
Oxygen offers groups of actions for working on single XML elements. They are available from the
Edit Actions
The following XML specific editing actions are available in Text mode:
•
contextual menu of current editor > Toggle comment (Ctrl + /) - Comments the current selection of the current
editor. If the selection already contains a comment the action removes the comment from around the selection. If
there is no selection in the current editor and the cursor is not positioned inside a comment the current line is
commented. If the cursor is positioned inside a comment then the commented text is uncommented.
Select Actions
In Text mode of the XML editor these actions are enabled when the caret is positioned inside a tag name:
•
•
contextual menu of current editor > Select > Element - Selects the entire current element.
contextual menu of current editor > Select > Content - Selects the content of the current element, excluding the
start tag and end tag. If it is applied repeatedly, starts with selecting the XML element from the cursor position and
extends the selection to the ancestor XML elements. Each execution of the action extends the current selection to
the surrounding element.