Hi,
I’ve created my own extension of DITA. Amongst others I have added an element “predicate”, like this:
<xs:element name="predicate">
<xs:annotation>
<xs:documentation>A <predicate> element marks the predicate, e.g. GROOT(Jan). (TP-ELEMENT)</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="predicate.class">
<xs:attribute ref="class" default="- ling-d/pred "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="predicate.class" mixed="true"/>
Now when I create a new ling topic, oXygen tells me
E [Xerces] cos-nonambig: predicate and predicate (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
My lingGrp.xsd contains:
<xs:group name="predicate">
<xs:sequence>
<xs:choice>
<xs:element ref="predicate" />
</xs:choice>
</xs:sequence>
</xs:group>
My lingDomain.xsd contains:
<xs:group name="ling-d-pred">
<xs:choice>
<xs:group ref="predicate" />
</xs:choice>
</xs:group>
And my ling.xsd contains:
<xs:group ref="ling-d-pred" />
No other references are made to predicate.
What am I doing wrong?
Kind regards,
Ing. Roderik Dernison