Using the SXML Editor in the Manager
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
- enable SXML editor on content type fields
- enable validation and intellisense by specifying a schema on content type fields
- configure schemas
- 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
- any
- sxml
- sxml+any
- sxml+xhtml11
- sxml+xhtml1-frameset
- sxml+xhtml1-strict
- sxml+xhtml1-trans
- sxml+xhtml-basic10
- xhtml11
- xhtml1-frameset
- xhtml1-strict
- xhtml1-trans
- 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.