xs:redefine
<xs:redefine id = "ID
" schemaLocation = "anyURI
" > <!-- (annotation | (simpleType | complexType | group | attributeGroup))* --> </xs:redefine>
The xs:redefine
element is used much like xs:include
. That is, it inserts
definitions and declarations for the same target namespace from a
schema document found at a URL specified by the schemaLocation
attribute. However,
unlike xs:include
, xs:redefine
can override type, model
group, and attribute group definitions from the included schema.
The new type and group definitions are children of the xs:redefine
element. They must extend or
restrict the original definition of the redefined type or group.
Note, however, that xs:redefine
cannot override element and attribute declarations made in the
included schema.