Substituting Elements and Types
You can substitute elements and types in the source and target trees.
Use element substitution when:
-
An element is defined as the head of a substitution group in the underlying schema. The element may or may not be abstract. Any element from the substitution group can be substituted for the original element.
-
An element is defined as an
anyelement. Any global element defined in the schema can be substituted.
Use type substitution when:
-
A global type is available in the underlying schema that is derived from the type of an element in the source or target tree. The global type can then be substituted for the original type of the element. Any type derived from an abstract type can be substituted for that abstract type.
-
An element in the source or target tree is defined to be of the type
anyType. Any global type defined in the schema can then be substituted.
Type substitution is supported by use of the xsi:type attribute in XML.
To substitute an element or type in the source and target trees:














