Key

Definition of a key.

Complex Type Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
Id xsd:ID required
Unique ID within the document for the resource.

Used By

Element KeyChoice/Key

Source

<xsd:complexType name="Key">
  <xsd:annotation>
    <xsd:documentation>Definition of a key.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="Annotation" minOccurs="0" type="Annotation">
      <xsd:annotation>
        <xsd:documentation>User annotation about the key.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:group ref="NameSet">
      <xsd:annotation>
        <xsd:documentation>Name(s) of the key.</xsd:documentation>
      </xsd:annotation>
    </xsd:group>
    <xsd:element name="ColumnRef" maxOccurs="unbounded" type="KeyColumnRef">
      <xsd:annotation>
        <xsd:documentation>References to the document IDs of the columns which make up the key. Only required columns can form part of a key.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="IdDefinition">
    <xsd:annotation>
      <xsd:documentation>ID which identifies the key within the document.</xsd:documentation>
    </xsd:annotation>
  </xsd:attributeGroup>
</xsd:complexType>