Configuration

To edit documents with Xopus, you need to configure it so that it knows which XML Stylesheet and XML Schema files need to be used. Pointing to XSL Stylesheet and XML Schema explains how to do that.

For more advanced features, Xopus can be configured on multiple levels.

Configuration Reference

A complete list of all available elements and attributes in configuration files.

Examples

Xopus Configuration

<config version="1.0" xmlns="http://www.xopus.com/xmlns/config">
  <import src="html5-roles.xml"/>
  <javascript>Editor.setUILanguage("en");</javascript>
  <javascript src="html5-helpers.js"></javascript>
  <roleMapping>
    <element name="b" role="strong"/>
    <attribute name="src" role="imagesource"/>
  </roleMapping>
  <changeTracking>
    <enabled>true</enabled>
  </changeTracking>
  <lookupConfig>
    <lookup parentPattern="self::a" name="href" url="hyperlink.html"/>
  </lookupConfig>
  <tableEditor>
    <maxInsertSize rows="42" columns="42"/>
  </tableEditor>
  <pipeline xml="document.xsd" xsd="schema.xsd">
    <view name="WYSIWYG view">
      <transform xsl="wysiwyg.xsl">
        <param name="author">value</param>
      </transform>
      <resolveXIncludes/>
      <treeTransform/>
    </view>
  </pipeline>
  <miscellaneous>
    <pasteSpecialAllowedHTML>strong em p</pasteSpecialAllowedHTML>
    <useSchemaOrderInMenus>true</useSchemaOrderInMenus>
  </miscellaneous>
  <validation>
    <validateOnLoad>true</validateOnLoad>
    <validateSimpleTypes>true</validateSimpleTypes>
  </validation>
</config>

Xopus Global Configuration

<config version="1.0" xmlns="http://www.xopus.com/xmlns/global-config">
  <advanced>
    <subCanvasMode>false</subCanvasMode>
  </advanced>
  <toolbar>
    <allowPersonalisation>false</allowPersonalisation>
    <hideWhenStandby>false</hideWhenStandby>
  </toolbar>
  <miscellaneous>
    <debugMode>false</debugMode>
    <exitURL>/goodbye-of-the-day.html</exitURL>
    <hideStatusbar>false</hideStatusbar>
    <ignoreUnsavedChanges>false</ignoreUnsavedChanges>
    <incrementalLoading>false</incrementalLoading>
    <logToServer></logToServer>
    <renderMode></renderMode>
    <resolveExternals>false</resolveExternals>
    <skipPrecalculationForNS>urn:foo:bar</skipPrecalculationForNS>
    <updateMode></updateMode>
  </miscellaneous>
  <spellChecker>
    <spellCheckServer>/spell.aspx</spellCheckServer>
    <defaultLanguage>en-US</defaultLanguage>
  </spellChecker>
</config>