XML Schema annotation要素
定義と用法
annotation要素は、schemaの説明を規定するトップレベル要素です。
注記:appinfo要素(アプリケーションが使用する情報)と documentation要素(ユーザーが読んだり使用したりするコメントやテキスト)を含むことができます。
要素情報
項目 | 説明 |
---|---|
出現回数 | 親要素中で一度のみ出現。 |
親要素 | 任何元素 |
内容 | appinfo、documentation |
文法
<annotation id=ID any attributes > (appinfo|documentation)* </annotation>
(* 符号表示该元素可在 annotation 元素中出现零次或多次。)
属性 | 説明 |
---|---|
id | 任意。该元素的唯一标识符。 |
any attributes | オプションです。non-schema ネームスペースを含む他の属性を指定します。 |
例 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appInfo>CodeW3C.com ノート</xs:appInfo> <xs:documentation xml:lang="en"> このスキーマは CodeW3C.com のノートを定義しています! </xs:documentation> </xs:annotation> . . . </xs:schema>