[oXygen-user] duplicate element

Roderik Dernison
Fri Nov 21 07:14:53 CST 2014


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 &lt;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



________________________________

----------------------------------------------------------
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.
----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20141121/d9804c15/attachment.html>


More information about the oXygen-user mailing list