creole/tests/dicos/redefine/01_variables.xml

75 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='abc1'>
<value>a</value>
</variable>
<variable name='abc2'>
<value>a</value>
</variable>
<variable name='abc3'>
<value>a</value>
</variable>
<variable name='fill2auto'/>
<variable name='auto2fill'/>
<variable name='disabled_if'/>
<variable name='disabled_if_redefine'/>
<variable name='enabled_if'/>
<variable name='enabled_if_redefine'/>
<variable name='frozen_if'/>
<variable name='frozen_if_redefine'/>
<variable name='condition'>
<value>oui</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
<check name="valid_enum" target="abc1">
<param>['a','b','c']</param>
</check>
<check name="valid_enum" target="abc2">
<param>['a','b','c']</param>
</check>
<check name="valid_enum" target="abc3">
<param>['a','b','c']</param>
</check>
<fill name='calc_val' target='fill2auto'>
<param name='valeur'>valeur</param>
</fill>
<auto name='concat' target='auto2fill'>
<param name='valeur1'>valeur1</param>
<param name='valeur2'>valeur2</param>
</auto>
<condition name='disabled_if_in' source='condition'>
<param>oui</param>
<target type='variable'>disabled_if</target>
<target type='variable'>disabled_if_redefine</target>
</condition>
<condition name='disabled_if_in' source='condition'>
<param>non</param>
<target type='variable'>enabled_if</target>
<target type='variable'>enabled_if_redefine</target>
</condition>
<condition name='frozen_if_in' source='condition'>
<param>oui</param>
<target type='variable'>frozen_if</target>
<target type='variable'>frozen_if_redefine</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->