configurationengine/source/scripts/tests/testdata/generate/error_test_project/layer1/implml/rules_with_errors.implml
changeset 3 e7e0ae78773e
equal deleted inserted replaced
2:87cfa131b535 3:e7e0ae78773e
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1">
       
     3     <tempVariable ref="TempFeature.String"   type="string"   value="testing"/>
       
     4     <tempVariable ref="TempFeature.Int"      type="int"      value="500"/>
       
     5     <tempVariable ref="TempFeature.Real"     type="real"     value="1.5"/>
       
     6     <tempVariable ref="TempFeature.Boolean"  type="boolean"  value="true"/>
       
     7     <tempVariable ref="TempFeature.Unused"   type="boolean"  value="false"/>
       
     8     
       
     9     <ruleml xmlns="http://www.s60.com/xml/ruleml/3">
       
    10         <!-- These cause errors -->
       
    11         <rule>configures ${TempFeature.Int} = 6000</rule>
       
    12         <rule>True configures</rule>
       
    13         
       
    14         <!-- These are simply ignored -->
       
    15         <rule/>
       
    16         <rule>foo bar baz ${TempFeature.Int} = 5000</rule>
       
    17         
       
    18         <!-- These should work (they are last in order to make sure that the
       
    19              invalid rules above don't prevent their execution) -->
       
    20         <rule>True configures ${TempFeature.String} = ${TempFeature.String} + " and more testing"</rule>
       
    21         <rule>True configures ${TempFeature.Int} = ${TempFeature.Int} + 1</rule>
       
    22         <rule>True configures ${TempFeature.Real} = ${TempFeature.Real} + 0.25</rule>
       
    23     </ruleml>
       
    24     
       
    25     <templateml xmlns="http://www.s60.com/xml/templateml/1">
       
    26     <output file="rules_with_errors_test.txt" dir="content" encoding="UTF-8">
       
    27 <template>
       
    28 TempFeature.String:  {{ feat_tree.TempFeature.String._value }}
       
    29 TempFeature.Int:     {{ feat_tree.TempFeature.Int._value }}
       
    30 TempFeature.Real:    {{ feat_tree.TempFeature.Real._value }}
       
    31 TempFeature.Boolean: {{ feat_tree.TempFeature.Boolean._value }}
       
    32 </template>
       
    33     </output>
       
    34     </templateml>
       
    35 </container>