Name

xs:keyref

Attributes

id

A unique ID value (optional)

name

A name for the key reference

refer

The qualified name of the xs:key or xs:unique referenced by the key reference

Contents

xs:annotation?, (xs:selector, xs:field+)

xs:keyref allows the creation of constraints that compare values across document components. It does this by specifying that the values of the fields for the elements specified by selector must match the contents of the key identified by refer.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.