Edit online

XSLT stylesheets are often used to create output in XHTML or XSL-FO. In addition to suggesting content completion options for XSLT stylesheet elements, Oxygen XML Editor can suggest elements from these vocabularies. To configure the XSLT content completion options, open the Preferences dialog box (Options > Preferences) and go to Editor > Content Completion > XSLT.

The following options are available:
Include elements declared in the schema section

This section includes options with regard to detecting elements from the declared schema.

Automatically detect HTML or Formatting Objects
Detects if the output being generated is HTML or FO and provides content completion for those vocabularies. Oxygen XML Editor analyzes the namespaces declared in the root element to find an appropriate schema.
If the detection fails, Oxygen XML Editor uses one of the following options:
  • None - The Content Completion Assistant suggests only XSLT elements.
  • HTML - The Content Completion Assistant includes HTML elements, including HTML5 elements (such as <video>, <canvas>, etc.).
  • Formatting objects - The Content Completion Assistant includes Formatting Objects (XSL-FO) elements as substitutes for <xsl:element>.
  • Custom schema - If you want content completion hints for another output vocabulary, you can use this option to specify the path to the schema for that vocabulary. The supported schema types are DTD, XML Schema, RNG schema, or NVDL schema for inserting elements from the target language of the stylesheet.
Documentation schema section
This section specifies an additional schema that will be used for documenting XSL stylesheets. You can choose between the following:
  • Built-in schema - Uses the built-in schema for documentation.
  • Custom schema - Allows you to specify a custom schema for documentation. The supported schema types are XSD, RNG, RNC, DTD, and NVDL.