Validation scenarios

<oXygen/> general issues.
EarlMorton
Posts: 11

Validation scenarios

Wed Oct 24, 2018 11:43 pm

I am trying to understand validation scenarios.

In a set of XML Schemas that I'm working with, one of the schema modules (I'll call it A) contains a type definition that is needed by three other modules (X, Y, and Z), so each of them uses <xs:include> to make the type definition available. But A's type definition references another type that X, Y, and Z each define, but they each define it differently.

Right now I have set up a validation scenario that is applied to A, but lists all three X, Y, and Z in the "Edit scenario" dialog box. At this point, all of them validate.

But I don't understand if the sequence of X, Y, and Z in the validation scenario is significant. Does oXygen validate A three times, once for each X, Y, and Z? Does it validate it against the first one on the list and ignore the others? Does it matter what order they are in? I guess I'm assuming that I need to list all three of them, but don't even know that for certain.

I'd appreciate any help understanding how this works.

Thanks!
Radu
Posts: 5814

Re: Validation scenarios

Thu Oct 25, 2018 7:23 am

Hi Earl,

With the validation scenario you have set up, Oxygen sequentially validates X, then validates Y then validates Z. As A is imported from the main XML Schemas it will also be indirectly validated because validating an XML Schema also checks that all XML Schemas referenced directly or indirectly from it are valid.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
EarlMorton
Posts: 11

Re: Validation scenarios

Thu Oct 25, 2018 5:33 pm

Very good--thanks, Radu!

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests