<!-- when iterating over all XML nodes of all types within y, --> <!-- the iw_case tag's type='...' may be used to discover the --> <!-- current node's type! --> <iw_iterate var ='an_xml_node_within_y' list='dcr.x.y.*'> <iw_ifcase name='an_xml_node_within_y'> <iw_case type='customer'> This is an XML element of type "customer" See for yourself: <iw_value name='$iw_ifcase_type'/> </iw_case> <iw_case op='=~' type='^zzz_'> The type of this XML element starts with "zzz_" </iw_case> <iw_case value='zebra'> Any XML node type who's value is equal to "zebra" </iw_case> <iw_case type='animal'> The type of this XML node is "animal" non-zebra animal: <iw_value name='an_xml_node_within_y'/> </iw_case> <iw_case> The default case </iw_case> </iw_ifcase> </iw_iterate>
<iw_iterate var='m' list='dcr.modules'> <iw_iterate var='mm' list='m.modules.*'> <iw_ifcase name='mm'> <iw_case type='module_1'> </iw_case> <iw_case type='module_2'> </iw_case> <iw_case type='module_3'> </iw_case> </iw_ifcase> </iw_iterate></iw_iterate>