[oXygen-user] document validation
George Bina
Tue Apr 21 03:04:53 CDT 2015
Hi Roderik,
This type of problem appears when the content model for an element
contains twice the same element particle in different places, with
optional content between these references, something lile
...
<element ref="emphasis">
<element ref="someOtherElement" minOccurs="0"/>
<element ref="emphasis">
...
In this case when the parser will encounter an emphasis element it will
not be able to know if it should match that against the first occurrence
or against the second occurrence of the emphasis element. The XML Schema
spec requires that only one particle should match, see
http://www.w3.org/TR/xmlschema-1/#cos-nonambig
If you provide the schema then we will probably be able to point you to
the exact issue there.
Such problems are resolved by writing the content model in a
non-ambiguous way - that that is not always easy and sometimes it may be
impossible or practically impossible.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 21/04/15 10:21, Roderik Dernison wrote:
> Good morning,
>
> I’ve made an extension to the DITA-schema called ling and another
> extension called ling-sod.
>
> The first validates fine. But the second gives errors:
>
> Description: cos-nonambig: emphasis and emphasis (or elements from their
> substitution group) violate "Unique Particle Attribution". During
> validation against this schema, ambiguity would be created for those two
> particles.
>
> However, when I click the error message I’m redirected to another
> element that doesn’t seem to be related to the problem.
>
> How to solve this problem?
>
> Vriendelijke groet,
>
> Ing. Roderik Dernison
> Programmeur/ontwikkelaar
>
>
> *INL **· **Schatkamer van de Nederlandse Taal*/
> /Matthias de Vrieshof 2 · Kamer 106a · 2311 BZ Leiden
>
> Tel. +31 (0)71 527 2491 · www.inl.nl <http://www.inl.nl/>
>
>
> ------------------------------------------------------------------------
>
> ----------------------------------------------------------
> Aan dit bericht kunnen geen rechten worden ontleend.
> Het bericht is alleen bestemd voor de geadresseerde.
> Indien het bericht niet voor u is bestemd, verzoeken wij
> u dit aan ons te melden en het bericht te verwijderen.
>
> This message shall not constitute any obligations.
> This message is intended solely for the addressee.
> If you have received this message in error, please
> inform us and delete the message.
> ----------------------------------------------------------
>
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list