XML Schema field 元素
ການກໍານົດ ແລະ ການນໍາໃຊ້
field 元素ຕິດຕັ້ງ XPath ການສະແດງ,ການສະແດງນັ້ນກໍານົດຄວາມຄິດຂອງການຄວບຄຸມການກັບການກວດສອບຄວາມຈະແຈັງ (unique、key ແລະ keyref) ຄືນາຍດັງ (ຫຼືບາງຄືນາຍດັງໜຶ່ງ).
ຂໍ້ມູນປະກອງ
ການປະກອງການ | ຄັ້ງ |
ປະທານປະກອບ | key、keyref、unique |
ຂົນມູນ | annotation |
ວິທະຍາສາດ
<field id=ID xpath=XPath ການສະແດງ any attributes > (annotation?) </field>
Attribute | Description |
---|---|
id | Optional. Specifies the unique ID of the element. |
xpath | Required. Identifies a single element or attribute whose content or value is used for constraints. If the expression identifies an element, then the element must be a simple type. |
xml:lang | Optional. Specifies the language used in the content. |
(? symbol declaration within field element, which can appear zero or once.)
Instance
Example 1
ເຫດການລາຍງານເຖິງ field element ທີ່ກໍານົດ attribute "userID" ສຳລັບການບັນທຶກຄວາມລະອຽດຂອງການຈັດການ:
<xs:field xpath="@userID"/>