1
我在w3schools上找到以下示例。XSD complexContent限制
<xs:complexContent>
<xs:restriction base="xs:integer">
<xs:attribute name="prodid" type="xs:positiveInteger"/>
</xs:restriction>
</xs:complexContent>
我正在寻找通过许多单证,但仍然不明白这一点:当一个复杂内容没有“混”属性的元素没有任何文本节点,因此不需要任何数据类型。但为什么<xs:restriction base="xs:integer">
?据我了解,这绝对没有?