XML Schema documentation 元素
定義和用法
documentation 元素在schema 中輸入文本註釋。 該元素必須位於annotation 元素內。
元素信息
- 父元素: annotation
語法
<documentation
source=URI reference
xml:lang=language>
Any well-formed XML content
</documentation>
source=URI reference
xml:lang=language>
Any well-formed XML content
</documentation>
属性 | 描述 |
---|---|
source | 可选。规定应用程序信息的来源。 |
xml:lang | 可选。规定内容中使用的语言。 |
實例1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
完整XML Schema參考手冊