Content Completion

The Content Completion feature enables inline syntax lookup and Auto Completion of mark-up elements and attributes to streamline mark-up and reduce errors while editing.

These settings define the operating mode of the content assistant.

 

Figure 15.13. The Content Completion Features preferences panel

The Content Completion Features preferences panel
Use Content Completion

This option enables Content Completion feature. When unchecked, all Content Completion features are disabled.

Case sensitive search

When it is checked the search in the content completion window when you type a character is case sensitive ('a' and 'A' are different characters).

Close the inserted element

When inserting elements from the Content Completion assistant, both start and end tags are inserted.

If it has no matching tag

When checked, the end tag of the inserted element will be automatically added only if it is not already present in the document.

Auto close the last opened tag

If the Use Content Completion option is not checked and if this option is checked, <oXygen/> will close the last opened tag when </ is typed.

Cursor position between tags

When checked, <oXygen/> will set the cursor automatically between tags. Even if the auto-inserted elements have attributes that are not required, the position of cursor can be forced between tags.

Show all entities

When checked, <oXygen/> will display a list with all the internal and external entities declared in the current document when the user types the start character of an entity reference (i.e. &).

Add element content

When checked, <oXygen/> will insert automatically the required elements from the DTD or XML Schema.

Add optional content

When checked, <oXygen/> will insert automatically the optional elements from the DTD or XML Schema.

Add first Choice particle

When checked, <oXygen/> will insert automatically the first Choice particle from the DTD or XML Schema.

Insert the required attributes

When checked, <oXygen/> will insert automatically the required attributes from the DTD or XML Schema for an element inserted with the help of the Content Completion assistant.

Insert the fixed attributes

When checked, <oXygen/> will insert automatically any FIXED attributes from the DTD or XML Schema for an element inserted with the help of the Content Completion assistant.

Show annotations

When checked, <oXygen/> will display the annotations that are present in the used schema for the current element, attribute or attribute value.

Show annotations as tooltip

If checked, it shows the annotations of elements and attributes as tooltips.

Use DTD comments as annotation

When checked, <oXygen/> will use all DTD comments as annotation.

Show recently used items

When checked, <oXygen/> will remember the last inserted items from the Content Completion window. The number of items to be remembered is limited by Maximum number of recent items shown combo box. These most frequently used items are displayed on the top of Content Completion window and are separated from the rest of the suggestions by a thin grey line.

Learn attributes values

When checked, <oXygen/> will display a list with all attributes values learned from the current document.

Learn on open document

When checked, <oXygen/> will automatically learn the document structure when the document is opened.

Learn words (Dynamic Abbreviations, available on CTRL+SPACE)

When checked, <oXygen/> will automatically learn the typed words and will make them available in a Content Completion fashion by pressing CTRL+SPACE.

[Note]Note

In order to be learned, the words need to be separated by space characters.

 XSL/XPath

These settings define what elements are suggested by the content assistant in addition to the XSL ones.

 

Figure 15.14. The Content Completion XSL/XPath preferences panel

The Content Completion XSL/XPath preferences panel
None

The Content Completion will offer only the XSL information.

XHTML transitional

Includes XHTML Transitional elements as substitutes for xsl:element.

Formating objects

Includes Formating Objects elements as substitutes for xsl:element.

Other

Includes elements from a DTD file, a XML Schema file or a RNG Schema file specified from a URL as substitutes for xsl:element.

Enable content completion for XPath expressions

Disables and enables content completion in XPath expressions entered in the XSL attributes match, select and test and also in the XPath toolbar.

Options are available to allow the user to include XPath functions, XSLT functions or axes in the content completion suggestion list.