Contains extensions on complexContent.
<extension
base = QName
id = ID
{any attributes with non-schema Namespace}…>
Content: (annotation?, ((group | all | choice | sequence)?, ((attribute |
attributeGroup)*, anyAttribute?)))
</extension>
The base value must be a qualified name (QName).
Required.
Optional.
| Number of occurrences | One time |
| Parent elements | complexContent |
| Contents | annotation, attribute, attributeGroup, anyAttribute, choice, all, sequence, group |
The following example extends a defined complexType element by adding an element and an attribute.
<xs:complexType name="address">
<xs:sequence>
<xs:element name="street" type="xs:string" />
<xs:element name="city" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="USAddress">
<xs:complexContent>
<xs:extension base="address">
<xs:sequence>
<xs:element name="state" type="xs:string" />
</xs:sequence>
<xs:attribute name="country" type="xs:string" fixed="US" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
XML Schema Reference (XSD) | XML Schema Elements
For more information, see the W3C XML Schema Part 1: Structures Recommendation at http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-simpleContent::extension.