XML Schema annotation要素
完全な XML Schema リファレンスマニュアル
定義と使用法
annotation 要素はトップレベル要素であり、スキーマの注釈を定義します。
要素情報
- 親要素:任意の要素
構文
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* 記号は、この要素が annotation 要素内に0回以上出現できることを宣言します。)
| 属性 | 説明 |
|---|---|
| id | 任意。この要素の一意の識別子。 |
| any attributes | 任意。non-schema 名前空間を持つその他の属性を指定します。 |
例 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>サンプル Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a サンプル note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
<xs:annotation>
<xs:appinfo>サンプル Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a サンプル note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
完全な XML Schema リファレンスマニュアル その他の拡張