complexContent の拡張を保持します。
<extension
base = QName
id = ID
{any attributes with non-schema Namespace}...>
Content: (annotation?, ((group | all | choice | sequence)?, ((attribute |
attributeGroup)*, anyAttribute?)))
</extension>
属性
base
complexType 要素の名前。base 値は、修飾名 (QName) であることが必要です。
必ず指定します。
id
この要素の ID。id の値は ID 型である必要があり、この要素を含んでいるドキュメント内で一意である必要があります。省略可能です。
要素情報
出現回数 |
1 回 |
親要素 |
|
コンテンツ |
annotation、attribute、attributeGroup、anyAttribute、choice、all、sequence、group。 |
例
要素および属性を追加して定義済みの complexType 要素を拡張する例を次に示します。
<xs:complexType name="address">
<xs:sequence>
<xs:element name="street" type="xs:string" />
<xs:element name="city" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="USAddress">
<xs:complexContent>
<xs:extension base="address">
<xs:sequence>
<xs:element name="state" type="xs:string" />
</xs:sequence>
<xs:attribute name="country" type="xs:string" fixed="US" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
その他のリソース
詳細については、www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-all で公開されている、W3C 勧告『XML Schema Part 1: Structures』を参照してください。