[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simple] xcap-list-usage schema doubt



Hi,
In draft-ietf-simple-xcap-list-usage-05 the schema for resource list
documents contains the following element.

<xs:complexType name="listType">
     <xs:sequence>
      <xs:element name="display-name" type="display-nameType"
minOccurs="0"/>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
       <xs:choice>
        <xs:element name="list">
         <xs:complexType>
          <xs:complexContent>
           <xs:extension base="listType"/>
          </xs:complexContent>
         </xs:complexType>
        </xs:element>
.....
.....

Is extending from the base type itself permitted. In the above, element
"list" extends from the complexType "listType". 

If we want recursive lists then 
<xs:element name="list" type="listType"/>
should suffice.

Particularly my parser throws error "Unique Particle Attribution" in the
former case. Maybe it is a bug with the parser (jaxp implementation)

Could some please comment on the choice for the former type.
-Anurag

_______________________________________________
Simple mailing list
Simple at ietf.org
https://www1.ietf.org/mailman/listinfo/simple