Easy Tutorial
❮ El Group Schema Facets ❯

XML Schema keyref Element



Definition and Usage

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

The keyref element must contain the following elements in order:

Element Information

Syntax

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

Attribute 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 a 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 namespace prefixes.
any attributes Optional. Specifies any other attributes with non-schema namespaces.

❮ El Group Schema Facets ❯