XML Schema selector 元素
定義和用法
selector 元素指定 XML 路徑語言 (XPath) 表達式,該表達式為標識約束選擇一組元素(unique、key 和 keyref 元素)。
元素信息
出現(xiàn)次數(shù) | 一次 |
父元素 | key、keyref、unique |
內(nèi)容 | annotation |
語法
<selector id=ID xpath=a subset of XPath expression any attributes > (annotation?) </selector>
屬性 | 描述 |
---|---|
id | 可選。規(guī)定該元素的唯一的 ID。 |
xpath | 必需。規(guī)定相對于所聲明的元素的 XPath 表達式。該表達式標識應用標識約束(所聲明的元素)的子元素。 |
any attributes | 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。 |