5
|
1 |
<configuration xmlns="http://www.s60.com/xml/confml/2" name="Example Configuration" version="2.91.0" xmlns:ruleml="http://www.s60.com/xml/ruleml/3" xmlns:custom="mynamespace1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
2 |
<extensions>
|
|
3 |
<custom:something foobar="barfoo">
|
|
4 |
<custom:foo>
|
|
5 |
<custom:foo2>bar</custom:foo2>
|
|
6 |
</custom:foo>
|
|
7 |
<custom:foo>bar2</custom:foo>
|
|
8 |
</custom:something>
|
|
9 |
<custom:something2 foobar="foba"/>
|
|
10 |
<ruleml:rule id="SampleRuleID">${Feature/Boolean} == true</ruleml:rule>
|
|
11 |
<ruleml:eval_globals file="scripts/eval_globals_example.py"/>
|
|
12 |
<ruleml:eval_globals>
|
|
13 |
def is_foobar(value):
|
|
14 |
if value.lower() == "foobar":
|
|
15 |
return True
|
|
16 |
else:
|
|
17 |
return False
|
|
18 |
</ruleml:eval_globals>
|
|
19 |
</extensions>
|
|
20 |
<feature ref="ExampleFeature" name="Example Feature Settings" custom:foo="3">
|
|
21 |
<desc>This is the description for the feature. It can be used for display purposes.</desc>
|
|
22 |
<setting ref="setting1" name="Setting 1" type="int" readOnly="false" custom:bar="1">
|
|
23 |
<extensions>
|
|
24 |
<custom:something myattribute="baar">
|
|
25 |
<custom:foo myatt="baarfoo">bar</custom:foo>
|
|
26 |
</custom:something>
|
|
27 |
<custom:something2 myattribute="bar"/>
|
|
28 |
</extensions>
|
|
29 |
<desc>The first setting</desc>
|
|
30 |
</setting>
|
|
31 |
<setting ref="Int" name="Int setting" type="int" ruleml:relevant="SampleRuleID"/>
|
|
32 |
<setting ref="MMSMessageSize" name="MMS Message Size" type="selection">
|
|
33 |
<option name="small" value="10" relevant="MMSSmall = true"/>
|
|
34 |
<option name="medium" value="20" custom:foo="4"/>
|
|
35 |
<option name="large" value="30"/>
|
|
36 |
<xs:minInclusive value="0"/>
|
|
37 |
<xs:maxInclusive value="50"/>
|
|
38 |
</setting>
|
|
39 |
</feature>
|
|
40 |
</configuration> |