Using the SXML Editor in the Manager

Release 1.0 - ...

The SXML editor is an ActiveX control that can be used in the Manager. It provides syntax highlighting, Intellisense, local schema validation and many other advanced editor features that make editing SXML (or any XML content) a joyful experience.

Client Setup

A manual setup is required in order to install the SXML editor. There is currently no automatic update process. Install the SxmlEditor.msi and optionally test if the editor is installed correctly by running TestSXMLEditor.hta.

Server Setup

The following steps are required to enable schema validation (both server and client) and intellisense

  1. enable SXML editor on content type fields
  2. enable validation and intellisense by specifying a schema on content type fields
  3. configure schemas
  4. configure Schema Service

1. How to enable SXML Editor on content type fields

Set CTFP EditProgId to SixSmartUI.SXMLEditor, update Smartsite Six\System Files when progid not available. You can specify an alternative editor font size in pt by setting the CTFP cust:EditSXMLFontSize (type: numeric).

2. How to enable field validation (client and server) and intellisense

Set CTFP SchemaSetId to a valid schema id (see step 3). Both validation and intellisense use the CTFP SecurityZone as well to check whether macro's and vipers are allowed in the specified security zone.

3. How to configure schemas

The schemas used for validation (both SXMLEditor client and server) and intellisense are defined in the smartsite.config. A default Smartsite installation comes with the following built-in schemas

  1. any
  2. sxml
  3. sxml+any
  4. sxml+xhtml11
  5. sxml+xhtml1-frameset
  6. sxml+xhtml1-strict
  7. sxml+xhtml1-trans
  8. sxml+xhtml-basic10
  9. xhtml11
  10. xhtml1-frameset
  11. xhtml1-strict
  12. xhtml1-trans
  13. xhtml-basic10

For more details on configuring schemas read the documentation on Smartsite.config.

4. Configure Schema service

The SXML Editor uses the WCF SchemaService to download the schemas from the server. Make sure the service is configured and up-and-running.