Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML Schema keyref Element

XML Schema keyref Element


XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The keyref element specifies that an attribute or element value (or a set of values) corresponds to the value of a specified key or unique element.

The keyref element must contain the following elements in order:

Element Information

Syntax

id=ID

name=NCName

refer=QName

any attributes

(annotation?,(selector,field+))

(The ? symbol declares that within the key element, the element can appear zero or one time; the + symbol declares that the element must appear one or more times.)

property Description
id Optional. Specifies a unique ID for the element.
name Required. Specifies the name of the key element.
refer Required. Specifies the name of the key or unique element defined in this schema (or in another schema indicated by the specified namespace). The refer value must be a qualified name (QName). The type can include a namespace prefix.
any attributes Optional. Specifies any other attributes with a non-schema namespace.

XML Schema Reference Manual Complete XML Schema Reference Manual