[Table of Contents] [docx version]
Error! No text of specified style in document.
The choose element wraps if/else blocks into a choose block.
[Example: Consider the following example of a choose element in a DrawingML diagram:
<choose name="Name1">
<if name="Name2" func="var" arg="dir" op="equ" val="norm">
<alg type="snake">
<param type="grDir" val="tL"/>
<param type="flowDir" val="row"/>
<param type="contDir" val="sameDir"/>
</alg>
</if>
<alg type="snake">
<param type="grDir" val="tR"/>
<param type="flowDir" val="row"/>
<param type="contDir" val="sameDir"/>
</alg>
</else>
</choose>
In this example, a choose element is used to define two different sets of parameters associated with a snake algorithm depending upon the direction in which the user wants the algorithm to flow (RTL or LTR). end example]
Parent Elements |
else (§5.9.2.12); forEach (§5.9.2.14); if (§5.9.2.15); layoutNode (§5.9.2.19) |
Child Elements |
Subclause |
else (Else) |
§5.9.2.12 |
if (If) |
§5.9.2.15 |
Attributes |
Description |
name (Name) |
A unique name associated with the choose statement.
[Example: Consider the following example of a choose element in a DrawingML diagram:
<choose name="Name1">
...
</choose>
In this example, the choose element is named Name1. end example]
The possible values for this attribute are defined by the XML Schema string datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Choose">
<sequence>
<element name="if" type="CT_When" maxOccurs="unbounded"/>
<element name="else" type="CT_Otherwise" minOccurs="0"/>
</sequence>
<attribute name="name" type="xsd:string" use="optional" default=""/>
</complexType>