configurationengine/source/scripts/tests/testdata/generate/error_test_project/layer1/implml/rules_with_errors.implml
changeset 3 e7e0ae78773e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configurationengine/source/scripts/tests/testdata/generate/error_test_project/layer1/implml/rules_with_errors.implml	Tue Aug 10 14:29:28 2010 +0300
@@ -0,0 +1,35 @@
+<?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>
\ No newline at end of file