Datatype: reference

Description:

This is an empty content, with a single, required attribute, refTo, which is of type uriReference. It is used to reference an instance.

Proposed Usage:

This is a convenience datatype. It is used for tags that reference another instance, but have empty content. Note that earlier versions used type IDREF rather than uriReference.

XML Schema:

  • The schema and examples do not explicitly show the lines that set the namespaces.
  • All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
  • XML Examples will exclude namespace modifiers for clarity. Actual XML will probably need namespaces.
  • <xsd:complexType name="reference">
      <xsd:attribute name="refTo" type="xsd:uriReference"/>
    </xsd:complexType>
    

    Sample Usage Schema:

       <element name="instanceRef" type="reference"/>
    

    Sample XML:

       <instanceRef refTo="#uid1A"/>
    

    Last Modified: March 21, 2001
    ©Copyright 2001 POSC. All rights reserved.