rougail/tests/dicos/multicondition/99_multicondition.xml

62 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='condition' type='oui/non' description='Condition 1'>
<value>oui</value>
</variable>
<variable name='condition2' type='oui/non' description='Condition 2'>
<value>non</value>
</variable>
<variable name='resultat1' description='Option 1' >
<value>resultat1</value>
</variable>
<variable name='resultat2' description='Option 2'>
<value>resultat2</value>
</variable>
<variable name='target1' description='Target 1'/>
<variable name='target2' description='Target 2'/>
<variable name='target3' description='Target 3'/>
</family>
<separators/>
</variables>
<constraints>
<fill name='calc_multi_condition' target='target1'>
<param>non</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='match'>resultat1</param>
<param type='eole' name='mismatch' hidden='False'>resultat2</param>
</fill>
<fill name='calc_multi_condition' target='target2'>
<param>oui</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='match'>resultat1</param>
<param type='eole' name='mismatch' hidden='False'>resultat2</param>
<param name='default_mismatch'>mismatch</param>
</fill>
<fill name='calc_multi_condition' target='target3'>
<param>['oui', 'non']</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='condition_2'>condition2</param>
<param name='match'>oui</param>
<param name='mismatch'>non</param>
</fill>
<condition name='disabled_if_in' source='condition'>
<param>non</param>
<target type='variable'>resultat2</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->