Page 1 of 1

Validation Exceptions

Posted: Tue Nov 08, 2011 3:38 pm
by DanielH
Is there is a way of giving the Oxygen validation engine a set of XML element tags to ignore when validating?

For example, we have an XML document that contains elements like the following:

<paragraph>
<text>Some text</text>
<meta>Some meta</meta>
</paragraph>

The schema dictates that a paragraph can contain only <text> elements. Locally, we want to add a <meta> tag to show some extra details in the author mode render, however the Oxygen validation engine marks the entry as invalid. Unfortunately, we don't have any control over the schema so an exception list would be great.

Re: Validation Exceptions

Posted: Tue Nov 08, 2011 3:59 pm
by sorin_ristache
Hello,

Why don't you create a new schema which extends the schema which you cannot change and allow for meta inside paragraph?

Unfortunately the complete set of restrictions for the XML instance documents must be specified in the schema which is fed to the XML processor. There is no other way of adding an exception list.


I hope this helps,
Sorin

Re: Validation Exceptions

Posted: Wed Nov 09, 2011 12:34 pm
by DanielH
Hi Sorin,

We did think of creating an additional schema to do as you said, but we wanted to see whether Oxygen supported any form of 'exception list' first.

Thanks for your help.

Re: Validation Exceptions

Posted: Wed Nov 09, 2011 12:38 pm
by sorin_ristache
Hi,

Such an exception list would not be conformant to the schema standards (W3C XML Schema, DTD, Schematron, etc). All restrictions must be specified by the schema that is parsed by the XML processor together with the XML instance document.


Best regards,
Sorin