XML Schema documentation 元素
完整 XML Schema 參考手冊(cè)
定義和用法
documentation 元素在 schema 中輸入文本注釋。該元素必須位于 annotation 元素內(nèi)。
元素信息
語(yǔ)法
<documentation
source=URI reference
xml:lang=language>
Any well-formed XML content
</documentation>
屬性 | 描述 |
source | 可選。規(guī)定應(yīng)用程序信息的來(lái)源。 |
xml:lang | 可選。規(guī)定內(nèi)容中使用的語(yǔ)言。 |
實(shí)例 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>
完整 XML Schema 參考手冊(cè)
更多建議: