【发布时间】:2015-12-05 03:01:36
【问题描述】:
我有一个包含以下内容的架构文件。我收到错误
cos-all-limited.1.2:“所有”模型组必须出现在粒子中 与'{'min发生'}' = '{'max发生'}' = 1,并且该粒子必须 是构成 a 的 '{'content type'}' 的一对的一部分 复杂类型定义。
我该如何解决这个问题?
<?xml version="1.0"?>`enter code here`
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:group name="custGroup">
<xs:all>
<xs:element name="customer" type="xs:string"/>
<xs:element name="orderdetails" type="xs:string"/>
<xs:element name="billto" type="xs:string"/>
<xs:element name="shipto" type="xs:string"/>
</xs:all>
</xs:group>
<xs:element name="order" type="ordertype"/>
<xs:complexType name="ordertype">
<xs:choice>
<xs:group ref="custGroup"/>
<xs:element name="status" type="xs:string"/>
</xs:choice>
</xs:complexType>
</xs:schema>
【问题讨论】: