องค์ประกอบตัวเลือก XML Schema
❮ การอ้างอิงสคีมา XML ที่สมบูรณ์
ความหมายและการใช้งาน
องค์ประกอบตัวเลือกระบุนิพจน์ XPath ที่เลือกชุดขององค์ประกอบสำหรับข้อจำกัดเอกลักษณ์ (องค์ประกอบที่ไม่ซ้ำ คีย์ และคีย์รีฟ)
ข้อมูลองค์ประกอบ
- องค์ประกอบหลัก:คีย์, keyref, เอกลักษณ์
ไวยากรณ์
<selector
id=ID
xpath=a subset of XPath expression
any attributes
>
(annotation?)
</selector>
(เครื่องหมาย ? ประกาศว่าองค์ประกอบสามารถเกิดขึ้นได้เป็นศูนย์หรือครั้งเดียวภายในองค์ประกอบตัวเลือก)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Specifies an XPath expression, relative to the element being declared, that identifies the child elements to which the identity constraint applies |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
❮ การอ้างอิงสคีมา XML ที่สมบูรณ์