<(><<)>tt:transform
xmlns:tt="http://www.sap.com/transformation-templates">
tt:root name="ROOT"/
<(><<)>tt:template>
<(><<)>tt:apply name="SUB">
tt:with-parameter name="PARA" ref="ROOT"/
<(><<)>/tt:apply>
<(><<)>/tt:template>
<(><<)>tt:template name="SUB">
<(><<)>tt:context>
tt:parameter name="PARA"/
<(><<)>/tt:context>
<(><<)>tt:switch-var>
<(><<)>tt:cond-var check="PARA<(><<)>50">
<(><<)>X val="small">...<(><<)>/X>
<(><<)>/tt:cond-var>
<(><<)>tt:cond-var check="PARA<(><<)>100">
<(><<)>X val="medium">...<(><<)>/X>
<(><<)>/tt:cond-var>
<(><<)>tt:cond-var>
<(><<)>X val="big">...<(><<)>/X>
<(><<)>/tt:cond-var>
<(><<)>/tt:switch-var>
<(><<)>/tt:template>
/tt:transform
Depending on the value of the ABAP data object bound to ROOT , the
serialization generates either of the following:
X val="small" ... /X
or
X val="medium" ... /X
or
X val="big" ... /X
is created. The position of the element tt:cond-var without
explicit condition within tt:switch-var is irrelevant. However,
the order of the elements tt:cond-var with explicit conditions is
relevant.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved