XML Schema documentation 元素
定義和用法
documentation 元素在 schema 中輸入文本注釋。該元素必須位于 annotation 元素內(nèi)。
元素信息
| 出現(xiàn)次數(shù) | 無(wú)限制 |
| 父元素 | annotation |
| 內(nèi)容 | 任何格式正確的 XML 內(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í)例
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appInfo>W3School Note</xs:appInfo> <xs:documentation xml:lang="en"> This Schema defines a W3School note! </xs:documentation> </xs:annotation> . . . </xs:schema>