validation - violation of "Unique Particle Attribution" -
when want validate xsd file, got error
cos-nonambig: "my xsd file":layout , "my xsd file":layout (or elements substitution group) violate "unique particle attribution". during validation against schema, ambiguity created 2 particles.
and refers me tag
<xs:complextype name="pagetype"> <xs:choice> <xs:element type="main:layouttype" name="layout" minoccurs="0" maxoccurs="1"/> <xs:group ref="main:widgetsgroup" maxoccurs="unbounded" minoccurs="0"/> </xs:choice> <xs:attribute type="xs:string" name="name"/> <xs:attribute type="xs:string" name="layout"/> <xs:attribute type="xs:string" name="datamodel"/> <xs:attribute type="xs:string" name="domain"/> </xs:complextype>
what problem? , how fix it?
i've solved inserting widgetgroup contents xsd :
<xs:complextype name="pagetype"> <xs:choice> <xs:element type="main:layouttype" name="layout" minoccurs="0" maxoccurs="1"/> <xs:sequence> <xs:choice maxoccurs="unbounded"> <xs:element name="spinner" type="main:spinnertype" minoccurs="0"/> <xs:element name="datepicker" type="main:datepickertype" minoccurs="0"/> <xs:element name="button" type="main:buttontype" minoccurs="0"/> <xs:element name="combo" type="main:comboboxtype" minoccurs="0"/> <xs:element name="checkbox" type="main:checkboxtype" minoccurs="0"/> <xs:element name="radiobutton" type="main:radiobuttontype" minoccurs="0"/> <xs:element name="image" type="main:imagetype" minoccurs="0"/> <xs:element name="label" type="main:labeltype" minoccurs="0"/> <xs:element name="listbox" type="main:listboxtype" minoccurs="0"/> <xs:element name="textbox" type="main:textboxtype" minoccurs="0"/> <!--<xs:element name="layout" type="main:layouttype" minoccurs="0"/>--> </xs:choice> </xs:sequence> </xs:choice> <xs:attribute type="xs:string" name="name"/> <xs:attribute type="xs:string" name="layout"/> <xs:attribute type="xs:string" name="datamodel"/> <xs:attribute type="main:domaintype" name="domain"/> <xs:attribute type="xs:string" name="title"/> </xs:complextype>
Comments
Post a Comment