我们可以从xsd中的不同属性组中进行选择吗?
我们能做到以下几点吗?如果没有,请您指导我选择xsd中的属性组我们可以从xsd中的不同属性组中进行选择吗?,xsd,Xsd,我们能做到以下几点吗?如果没有,请您指导我选择xsd中的属性组 <xsd:complexType name="getGroupType"> <xsd:choice minOccurs="1" maxOccurs="1"> <xsd:attributeGroup ref="groupA"/> <xsd:attributeGroup ref="groupB"/> </xsd:choi
<xsd:complexType name="getGroupType">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:attributeGroup ref="groupA"/>
<xsd:attributeGroup ref="groupB"/>
</xsd:choice>
</xsd:complexType>
xsd:choice
称为模型组,只能与元素一起使用,不能与属性一起使用。但是,可以使用子类型(扩展基本类型的两种类型)模拟属性组上的选择