autoMakeValid

This configuration option, when set to True, will force a document to become valid when loaded. This feature applies the makeValid function when loading the document.

<x:config version="1.0" xmlns:x="http://www.xopus.com/xmlns/config">
  <x:validation>
    <x:autoMakeValid>true</x:autoMakeValid>
  </x:validation>
</x:config>

For example the following structure:

<section>
  <title>text</title>
  <paragraph>
    text
    <list>
      <item>more text</item>
    </list>
  </paragraph>
</section>

to the following (which is what the schema would be indicating:

<section>
  <title>text</title>
  <paragraph>
    text
  </paragraph>
  <list>
    <item>more text</item>
  </list>
</section>

The full complexity and usefulness of this feature will have to be determined by trail and error.

Please note that this feature is not production ready: use this for development purposes only!


autoMakeValid element

Namespace: http://www.xopus.com/xmlns/config

Parent Elements

validation

History

version event
Xopus 4.0.3 Introduction. (Case 188374)