Recursive definitions
An example of a recursive type definition is where a choice type contains a sequence type, and the sequence type contains two elements of the same choice type.
Deprecated feature:
Support for custom business rule
languages is deprecated in V8.8.1. This feature will be removed in
a future release of the product. See Deprecated features for migration
details.
Type definitions can be recursive.
The following example shows recursive type definitions, where the expression choice type contains an addition sequence type. However, the addition sequence type contains two elements of type expression:
<complexType name="T-expression">
<choice>
<element name="addition" type="T-addition"/>
<element name="constant" type="T-constant"/>
</choice>
</complexType>
<complexType name="T-addition">
<sequence>
<element name="leftArg" type="T-expression"/>
<element name="rightArg" type="T-expression"/>
</sequence>
</complexType>
<complexType name="T-constant">
<simpleContent>
<restriction base="string"/>
</simpleContent>
</complexType>