XML Schema annotation element

ການອະທິບາຍ ແລະ ການນໍາໃຊ້

annotation 元素ເປັນສິ່ງສະເພາະທີ່ກໍານົດ annotation ຂອງ schema.

ຄວາມອະທິບາຍ:ສາມາດກວມສິ່ງນີ້ appinfo (ຂໍ້ມູນທີ່ນຳໃຊ້ໂດຍການຄອມພິວເຕີ້) ແລະ documentation (ຂໍ້ມູນທີ່ອ່ານຫຼືໃຊ້ໂດຍຜູ້ນຳໃຊ້).

ຂໍ້ມູນສິ່ງນີ້

ບັນດາອົງການ ການອະທິບາຍ
ຈຳນວນການປະກົດ

ປະກົດຢູ່ໃນສິ່ງປົກກະຕິພຽງຫຼິນຄັ້ງ.

ສິ່ງປົກກະຕິ

ສິ່ງທີ່ສາມາດມີຫຼືບໍ່

ຂັ້ນຄວາມ appinfo、documentation

ວິທະຍາສາດ

<annotation
id=ID
ຄວາມປະສົງ
>
(appinfo|documentation)*
</annotation>

(* ອີກອັດຕາກາຍສະແດງວ່າສິ່ງນີ້ສາມາດປະກົດຢູ່ໃນ annotation ພາຍໃນບໍ່ມີຫຼືຫຼາຍຄັ້ງ.)

ປະສົງ ການອະທິບາຍ
id ຄວາມຄືນໄດ້. ຄວາມອັດຕາການນຳມາຂອງສິ່ງນີ້.
ຄວາມປະສົງ Optional. Specify any other attributes with non-schema namespace.

Example 1

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
  <xs:appInfo>CodeW3C.com Note</xs:appInfo>
  <xs:documentation xml:lang="en">
  This Schema defines a CodeW3C.com note!
  </xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>