The oXygen custom menu

When the current editor window contains a document associated with <oXygen/> a custom menu is added to the Eclipse menu bar named after the document type:

XML

A XML document is edited

XSD

A W3C XML Schema is edited

DTD

A Document Type Definition is edited

XSL

A XSL Stylesheet is edited

RNG

A Relax NG full syntax schema is edited

RNC

A Relax NG compact syntax schema is edited

NRL

A Namespace Routing Language schema is edited

The available menu actions are the following:

XML Menu

Note

Macintosh users should use the command key instead of the control key for all keyboard shortcuts.

Table 3.1. XML Menu Options

  • XML-> Validate document (Ctrl+Shift+V) : Validate the current edited document against its declared DTD or XML Schema.

  • XML-> Check document form (Ctrl+Shift+W) : Check that the current edited document is well-formed.

  • XML-> RELAX NG validation (Ctrl+Shift+R) : Select a RELAX NG schema from the local filesystem and validate the current edited document against it.

  • XML-> NRL validation (Ctrl+Shift+N) : Select a NRL schema from the local filesystem and validate the current edited document against it.

  • XML-> Clear validation markers (Ctrl+Shift+K): Clear the error markers added to the Problems view at the last validation of the current edited document.

  • XML-> Convert with Trang (Ctrl+Shift+\): Convert the current edited document to one of the formats RNG, RNC, DTD, XSD using the Trang converter.

  • XML-> Associate schema (Ctrl+Shift+S): Displays the Templates dialog used to discover, select and open a new document based on an exiting template document. Template documents act as starting points that have predefined properties such as file type, prolog, root element, containers and even existing content.

  • XML-> Apply transformation scenario (Ctrl+Shift+T): Apply to current document the scenario associated to it. If no scenario is associated to the document the “Configure transformation scenario” action will be launched first.

  • XML-> Configure transformation scenario (Ctrl+Shift+C): Open the scenario configuration dialog containing all the scenarios that can be applied to the current document, that is scenarios containing the URL of an XML document if the current document is an XSL stylesheet or scenarios containing the URL of an XSL stylesheet for the rest of edited documents.

  • XML-> Learn structure (Ctrl+Shift+L): Infer an internal DTD from the current document that can be used for content assistant when the document declares no DTD, XML Schema or Relax NG schema.

  • XML-> Format and indent (Ctrl+Shift+F): Apply format and indent according to settings in Preferences -> oXygen -> Editor -> Format.

  • XML-> XPath (Ctrl+Shift+/): Execute a XPath query against the current document.

  • XML-> Add to templates (Ctrl+Shift+A): Displays the Add Templates dialog used to define the name by which the template will be recognized in the “New from templates” option.

  • XML-> Check spelling (Ctrl+Shift+Q) : Start checking the spelling of current document.