24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Editing Documents | 48• automatically, after a configurable delay from the last key press of the < character. The delay is configurable inPreferences as a number of milliseconds from last key press.• on demand, by pressing CTRL+Space on a partial element or attribute name.Elements are highlighted in the list using the Up and Down cursor keys. Here are the options to insert the selectedcontent:• press the Enter key or the Tab key to insert both the start and end tags.• press CTRL + Enter. The application inserts both the start and end tags, separated by an empty line. The cursor ispositioned on the empty line on an indented position with regard to the start tag.Note: When the DTD, <strong>XML</strong> Schema or RELAX NG schema specifies required child elements for the newlyadded element, they will be inserted automatically only if the Add Element Content option (found in Preferences> Editor > Content Completion options page) is enabled. The Content Completion assistant can also addoptional content and first choice particle, as specified in the DTD or <strong>XML</strong> Schema or RELAX NG schema, forthe element if these two options are enabled.After inserting the element, the cursor will be positioned:• before the > character of the start tag, if the element allows attributes, in order to enable rapid insertion of any of theattributes supported by the element. Pressing the space bar will display the Content Completion list once again. Thistime it will contain the list of allowed attribute names. If the attribute supports a fixed set of parameters, the assistantlist will display the list of valid parameters. If the parameter setting is user-defined and therefore variable, the assistantwill be closed to enable manual insertion. The values of the attributes can be learned from the same elements in thecurrent document.• after the > char of the start tag if the element has no attributes.The content assistant can be started at any time by pressing CTRL+Space The effect is that the context-sensitive list ofproposals will be shown in the caret's current position if element, attribute or attribute value insertion makes sense. TheContent Completion assistant is displayed:• anywhere within a tag name or at the beginning of a tag name in an <strong>XML</strong> document, <strong>XML</strong> Schema, DTD or RelaxNG (full or compact syntax) schema;• anywhere within an attribute name or at the beginning of an attribute name in any <strong>XML</strong> document with an associatedschema;• within attribute values or at the beginning of attribute values in <strong>XML</strong> documents where lists of possible values havebeen defined for that element in the schema associated with the documentThe items that populate the Content Completion assistant are dependent on the element structure specified in the DTD,<strong>XML</strong> Schema, Relax NG (full or compact syntax) schema, or NVDL schema associated to the edited document.The number and type of elements displayed by the assistant is dependent on the cursor's current position in the structureddocument. The child elements displayed within a given element are defined by the structure of the specified DTD, <strong>XML</strong>Schema, Relax NG (full or compact syntax) schema, or NVDL schema. All elements that can't be child elements of thecurrent element according to the specified schema are not displayed.If only one element name must be displayed by the content assistant then the assistant is not displayed anymore but thisonly option is automatically inserted in the document at the current cursor position.A schema may declare certain attributes as ID or IDREF/IDREFS. When the document is validated, oXygen <strong>XML</strong>checks the uniqueness and correctness of the ID attributes. It also collects the attribute values declared in the documentto prepare the content completion assistant's list of proposals. This is available for documents that use DTD, <strong>XML</strong>Schema and Relax NG schema.Also values of all the xml:id attributes are treated as ID attributes and collected and displayed by the Content Completionassistant as possible values for anyURI attributes defined in the schema of the edited document. This works only for<strong>XML</strong> Schema and Relax NG schemas.For documents that use an <strong>XML</strong> Schema or Relax NG schema the content assistant offers proposals for attributes andelements values that have as type an enumeration of tokens. Also if a default value or a fixed value is defined in the<strong>XML</strong> Schema used in validation for an attribute or element then that value is offered in the content completion window.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!