Phần tử bộ chọn lược đồ XML
❮ Tham chiếu lược đồ XML hoàn chỉnh
Định nghĩa và Cách sử dụng
Phần tử bộ chọn chỉ định một biểu thức XPath chọn một tập hợp các phần tử cho một ràng buộc nhận dạng (các phần tử duy nhất, khóa và keyref).
Thông tin phần tử
- Các phần tử chính: key, keyref, unique
Cú pháp
<selector
id=ID
xpath=a subset of XPath expression
any attributes
>
(annotation?)
</selector>
(Dấu? Khai báo rằng phần tử có thể xuất hiện không hoặc một lần bên trong phần tử bộ chọn)
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 |
❮ Tham chiếu lược đồ XML hoàn chỉnh