XML Schema documentation 元素


XML Schema 參考手冊 完整 XML Schema 參考手冊

定義和用法

documentation 元素在 schema 中輸入文本注釋。該元素必須位於 annotation 元素內。

元素資訊

  • 父元素: annotation

語法

<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>zaixian Note</xs:appinfo>
  <xs:documentation xml:lang="en">
  This Schema defines a zaixian note!
  </xs:documentation>
</xs:annotation>

.
.
.

</xs:schema>


XML Schema 參考手冊 完整 XML Schema 參考手冊