In the example below, element nc:Date
appears as a replacement for element nc:DateRepresentation
, an abstract element that cannot appear in an instance.
<nc:Person>
<nc:PersonBirthDate>
<!-- Date is substituted for DateRepresentation -->
<nc:Date>1950-06-30</nc:Date>
</nc:PersonBirthDate>
</nc:Person>
<xs:element name="Date" type="niem-xs:date" substitutionGroup="nc:DateRepresentation" nillable="true">
<xs:annotation>
<xs:documentation>A full date.</xs:documentation>
</xs:annotation>
</xs:element>
substitutionGroup
attribute.Date
element may replace element nc:DateRepresentation
wherever it occurs.<xs:element name="NAME" type="TYPE" substitutionGroup="SUBSTITUTION" nillable="true">
<xs:annotation>
<xs:documentation>DEFINITION</xs:documentation>
</xs:annotation>
</xs:element>