Release 1.0 - ...

<schemaSettings> element

The schemaSettings element defines the XML schemas used for schema validation and Intellisense. A schema is uniquely identified by an id.

A default Smartsite installation comes with the following 13 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

The schemaSettings element allows for adding custom schemas. A custom schema may be located on the file system (relative to the site root) or in the CMS. The physical schema location is set using the location attribute. When a CMS item is specified, a CMS field must be specified in order to be able to locate the actual contents of a schema.

Schema configuration rules

  1. When no or an empty schema section is specified, only the built-in schemas are available.
  2. XML attributes location and field specify a CMS item field or file. Both attributes are optional for built-in schemas
  3. The <clear/> removes all schemas (including the built-in)
  4. Use <remove id=""/> to remove a specific schema

Expand image Example

Expand image Attributes

Expand image Parent element

Expand image Child elements