Validation Exceptions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DanielH
Posts: 14
Joined: Tue Sep 27, 2011 11:29 am

Validation Exceptions

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Validation Exceptions

Post 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
DanielH
Posts: 14
Joined: Tue Sep 27, 2011 11:29 am

Re: Validation Exceptions

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Validation Exceptions

Post 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
Post Reply