Variable | Description | Usage | NDR Reference |
---|---|---|---|
{$Name} |
The name of the property | Required | Rule 7-5 How to name a component
NDR Section 9.2.1 Component naming rules |
{$RepresentationTerm} |
A required representation term for elements with simple content | Required | NDR Table 10-2 Representation terms
Rule 11-16 Element with simple content has representation term |
{$Type} |
The QName of the complex type | Required unless abstract | Rule 11-13 Element has a complex data type |
{$Nillable} |
"true", if the property can have an empty value | Optional | Rule 9-46 Elements are nillable |
{$OpeningPhrase} |
The opening phrase for the data definition of this property | Required | |
{$Definition} |
The data definition of the property | Required | NDR Section 11.6.1.1 Data definition opening phrases
NDR Section 11.6.1 How to write component definitions Rule 11-31 Standard opening phrase for elements |
Note: The nillable attribute may be removed if it is set to “false”.
<xs:element name="{$Name}{$RepresentationTerm}" type="{$Type}" nillable="{$Nillable}">
<xs:annotation>
<xs:documentation>{$OpeningPhrase} {$Definition}</xs:documentation>
</xs:annotation>
</xs:element>