XML スキーマ simpleContent 要素
完全なXMLスキーマリファレンス
定義と用法
simpleContent 要素は、拡張機能や、テキストだけの複合型または
コンテンツや要素を含まないような単純型の拡張や制約を含みます。
要素情報
構文
<simpleContent
id=ID
any attributes
>
(annotation?,(restriction|extension))
</simpleContent>
(simpleContent 要素内で、? 記号は要素が 0 または 1 回出現できることを宣言します)
属性 |
説明 |
id |
オプション。 要素へユニークな ID を指定する |
any attributes |
オプション。非スキーマ名前空間を持つ他の属性を指定する
|
例 1
ここにテキストだけを含むXML要素(<shoesize>)の例があります:
<shoesize country="france">35</shoesize>
The following example
declares a complexType, "shoesize", with its content defined as a
integer data type and with a country attribute:
<xs:element name="shoesize">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute name="country" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
完全なXMLスキーマリファレンス
|