configurationengine/source/scripts/tests/testdata/generate/error_test_project/layer1/implml/rules_with_errors.implml
Merge changes to system model generator to SF tip.
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://www.symbianfoundation.org/xml/implml/1">
<tempVariable ref="TempFeature.String" type="string" value="testing"/>
<tempVariable ref="TempFeature.Int" type="int" value="500"/>
<tempVariable ref="TempFeature.Real" type="real" value="1.5"/>
<tempVariable ref="TempFeature.Boolean" type="boolean" value="true"/>
<tempVariable ref="TempFeature.Unused" type="boolean" value="false"/>
<ruleml xmlns="http://www.s60.com/xml/ruleml/3">
<!-- These cause errors -->
<rule>configures ${TempFeature.Int} = 6000</rule>
<rule>True configures</rule>
<!-- These are simply ignored -->
<rule/>
<rule>foo bar baz ${TempFeature.Int} = 5000</rule>
<!-- These should work (they are last in order to make sure that the
invalid rules above don't prevent their execution) -->
<rule>True configures ${TempFeature.String} = ${TempFeature.String} + " and more testing"</rule>
<rule>True configures ${TempFeature.Int} = ${TempFeature.Int} + 1</rule>
<rule>True configures ${TempFeature.Real} = ${TempFeature.Real} + 0.25</rule>
</ruleml>
<templateml xmlns="http://www.s60.com/xml/templateml/1">
<output file="rules_with_errors_test.txt" dir="content" encoding="UTF-8">
<template>
TempFeature.String: {{ feat_tree.TempFeature.String._value }}
TempFeature.Int: {{ feat_tree.TempFeature.Int._value }}
TempFeature.Real: {{ feat_tree.TempFeature.Real._value }}
TempFeature.Boolean: {{ feat_tree.TempFeature.Boolean._value }}
</template>
</output>
</templateml>
</container>