2
我定義波紋管的的ComplexType基部的粒子的有效的限制:推導-OK-限制:該類型的顆粒不是
<xs:element name="abstractForm" type="abstractFormType" abstract="true"/>
<xs:complexType name="abstractFormType" abstract="true">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id-form" type="xs:NCName"/>
<xs:attribute name="select"/>
<xs:anyAttribute/>
</xs:complexType>
但在那之後在代碼,我每次添加一個的ComplexType我有這樣的錯誤:derivation-ok-restriction : The particle of the type is not a valid restriction of the particle of the base.
例:
<xs:element name="abstractNewForm" type="abstractNewFormType" abstract="true"
substitutionGroup="abstractForm"/>
<xs:complexType name="abstractNewFormType" abstract="true">
<xs:complexContent>
<xs:restriction base="abstractFormType">
<xs:sequence>
<xs:sequence>
<xs:element name="customize" minOccurs="0" type="abstractCustomizeType"/>
</xs:sequence>
<xs:sequence>
<xs:element name="positions" minOccurs="0" type="abstractPositionsType"/>
</xs:sequence>
</xs:sequence>
<xs:attribute name="id-form" type="xs:NCName" use="required"/>
<xs:attribute name="select"/>
<xs:anyAttribute/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
有人有想法? :)