[oXygen-user] duplicate element

Oxygen XML Editor Support (Radu Coravu)
Tue Nov 25 04:00:20 CST 2014


Hi Roderik,

Could you possibly send us directly () your entire 
set of DITA XML Schema-based specialization files?
It would be easier for us to follow what you did.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 11/21/2014 3:14 PM, Roderik Dernison wrote:
> 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.
> ----------------------------------------------------------
>
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list