|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1"> |
|
3 <!-- Define the temporary variables and set their values --> |
|
4 <tempVariable ref="Condition.String" type="string" value="testing"/> |
|
5 <tempVariable ref="Condition.Int" type="int" value="500"/> |
|
6 <tempVariable ref="Condition.Real" type="real" value="1.5"/> |
|
7 <tempVariable ref="Condition.Boolean" type="boolean" value="true"/> |
|
8 <tempVariable ref="Condition.Unused" type="boolean" value="false"/> |
|
9 |
|
10 <container condition="${Condition.String}" value="testing"> |
|
11 <!-- Print out the values to a text file --> |
|
12 <templateml xmlns="http://www.s60.com/xml/templateml/1"> |
|
13 <output file="template_string_condition_true.txt" dir="content" encoding="UTF-8"> |
|
14 <template> |
|
15 TempFeature.String: {{ feat_tree.TempFeature.String._value }} |
|
16 </template> |
|
17 </output> |
|
18 </templateml> |
|
19 </container> |
|
20 |
|
21 <container condition="${Condition.String}" value="nomatch"> |
|
22 <!-- Print out the values to a text file --> |
|
23 <templateml xmlns="http://www.s60.com/xml/templateml/1"> |
|
24 <output file="template_string_condition_false.txt" dir="content" encoding="UTF-8"> |
|
25 <template> |
|
26 TempFeature.String: {{ feat_tree.TempFeature.String._value }} |
|
27 </template> |
|
28 </output> |
|
29 </templateml> |
|
30 </container> |
|
31 |
|
32 <container condition="${Condition.Boolean}"> |
|
33 <!-- Print out the values to a text file --> |
|
34 <content xmlns="http://www.s60.com/xml/content/2"> |
|
35 <output flatten="true" dir="sis"> |
|
36 <input file="apps/app1.txt"/> |
|
37 </output> |
|
38 </content > |
|
39 </container> |
|
40 |
|
41 <container condition="${Condition.Boolean}" value="false"> |
|
42 <!-- Print out the values to a text file --> |
|
43 <content xmlns="http://www.s60.com/xml/content/2"> |
|
44 <output dir="sis"> |
|
45 <input> |
|
46 <include dir="apps" pattern="app2.txt"/> |
|
47 </input> |
|
48 </output> |
|
49 </content > |
|
50 </container> |
|
51 </container> |