当前位置: 首页 > 网络学院 > XML相关教程 > Schema (XSD) > XML Schema unique 元素
Schema (XSD) 中的 XML Schema unique 元素
出处:互联网 整理: 软晨网(RuanChen.com) 发布: 2009-03-04 浏览: 191 ::
The unique element defines that an element or an attribute value must be unique within the scope.
unique 元素的作用是:定义了一个元素或一个属性值,该元素和属性值在对应的范围内是独一无二的。
The unique element MUST contain the following (in order):
key[键]元素必须按顺序包含下列内容:
<unique (annotation?,(selector,field+)) </unique> |
(The ? sign declares that the element can occur zero or one time inside the unique element)
“?”符号用于声明元素在unique元素中允许出现的次数(0次或1次)
| 属性 | 描述 |
|---|---|
| id | Optional. Specifies a unique ID for the element 可选参数。为元素指定一个独立的ID |
| name | Required. Specifies a name for the element 必要参数。为元素指定一个名称 |
| any attributes | Optional. Specifies any other attributes with non-schema namespace 可选参数。指定非schema命名空间的其它属性 |
评论 (0) All