XML スキーマ annotation 要素
完全なXMLスキーマリファレンス
定義と用法
annotation 要素は、スキーマのコメントを指定する最上位レベルの要素です。
コメントは、インライン・ドキュメントとして機能します。
要素情報
構文
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(annotation 要素内で、* 記号は要素がゼロ回以上出現できることを宣言します)
属性 |
説明 |
id |
オプション。 要素へユニークな ID を指定する |
any attributes |
オプション。非スキーマ名前空間を持つ他の属性を指定する |
例 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appInfo>W3Schools Note</xs:appInfo>
<xs:documentation xml:lang="en">
This Schema defines a W3Schools note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
完全なXMLスキーマリファレンス
|