Subject:DTD to Schema conversion generating validation error Author:Ken Howard Date:11 Jul 2008 01:50 PM
I have a dtd which contains an element as follows:
<!ELEMENT el(a*|b|c|(b,c))>
The schema generated gives the following error when I try to run through JAXB1.0
[ERROR] cos-nonambig: "":b and "":c (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
Subject:DTD to Schema conversion generating validation error Author:(Deleted User) Date:18 Jul 2008 04:53 AM
This DTD is ambiguous: when <el> contains <b>, the schema validator doesn't know whether to accept it as a single <b> or look for a <c> after it. This violates the Unique Particle Association, i.e. being able to uniquely associate an element to a particle in the schema without any look-ahead.