Content Completion in XSLT Stylesheets

Inside XSLT templates of an XSLT stylesheet, the content completion assistant presents all the elements allowed in any context by the schema associated to the result of applying the stylesheet. That schema is defined by the user in the Content Completion / XSL preferences page and can be of type: XML Schema, DTD, RELAX NG schema, or NVDL schema. There are presented all the elements because in a template there is no context defined for the result document. The user is allowed to insert any element defined by the schema of the result document.

The content completion window lists the following item types defined in the current stylesheet and in the imported and included XSLT stylesheets:

The extension functions built in the Saxon transformation engine are presented in the content completion list only if the Saxon namespace (http://saxon.sf.net for XSLT version 2.0 or http://icl.com/saxon for XSLT version 1.0) is mapped to a prefix and one of the following conditions is true:

Namespace prefixes in the scope of the current context are presented at the top of the content completion window to speed up the insertion into the document of prefixed elements.

For the common namespaces like XSL namespace (http://www.w3.org/1999/XSL/Transform), XML Schema namespace (http://www.w3.org/2001/XMLSchema) or Saxon namespace (http://icl.com/saxon for version 1.0, http://saxon.sf.net/ for version 2.0), Oxygen XML Developer plugin provides an easy mode to map them by proposing a prefix for these namespaces.

Namespace Prefixes in the Content Completion Window