Hi,

Another thing I noted is that currently the component.xsd schema says you
have to add all tns:action then all tns:property then metadataError
elements in a sequence.

If the order of properties and actions should be more flexible, as I assume
it should, you need a xs:choice, I think the following is correct.

    <xs:complexType name="fieldSet">
        <xs:sequence>
            <xs:choice maxOccurs="unbounded">
                <xs:element ref="tns:action" />
                <xs:element ref="tns:property" />
            </xs:choice>
            <xs:element minOccurs="0" name="metadataError" type="xs:string"
/>
        </xs:sequence>
        <xs:attribute name="name" type="xs:string" use="required" />
        <xs:attribute name="id" type="xs:string" />
        <xs:attribute name="unreferencedActions" type="xs:boolean" />
        <xs:attribute name="unreferencedProperties" type="xs:boolean" />
    </xs:complexType>

Reply via email to