configurationengine/source/cone/confml/tests/testdata/read_write/extensions2.confml
author m2lahtel
Thu, 21 Oct 2010 16:36:53 +0300
changeset 5 d2c80f5cab53
permissions -rw-r--r--
Updated to version 1.2.14
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     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">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     2
    <extensions>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     3
        <custom:something foobar="barfoo">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     4
            <custom:foo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     5
                <custom:foo2>bar</custom:foo2>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     6
            </custom:foo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     7
            <custom:foo>bar2</custom:foo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     8
        </custom:something>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
     9
        <custom:something2 foobar="foba"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    10
        <ruleml:rule id="SampleRuleID">${Feature/Boolean} == true</ruleml:rule>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    11
        <ruleml:eval_globals file="scripts/eval_globals_example.py"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    12
        <ruleml:eval_globals>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    13
def is_foobar(value):
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    14
	if value.lower() == "foobar":
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    15
		return True
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    16
	else:
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    17
		return False
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    18
        </ruleml:eval_globals>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    19
    </extensions>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    20
    <feature ref="ExampleFeature" name="Example Feature Settings" custom:foo="3">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    21
        <desc>This is the description for the feature. It can be used for display purposes.</desc>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    22
        <setting ref="setting1" name="Setting 1" type="int" readOnly="false" custom:bar="1">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    23
            <extensions>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    24
                <custom:something myattribute="baar">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    25
                    <custom:foo myatt="baarfoo">bar</custom:foo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    26
                </custom:something>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    27
                <custom:something2 myattribute="bar"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    28
            </extensions>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    29
            <desc>The first setting</desc>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    30
        </setting>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    31
        <setting ref="Int" name="Int setting" type="int" ruleml:relevant="SampleRuleID"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    32
        <setting ref="MMSMessageSize" name="MMS Message Size" type="selection">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    33
            <option name="small" value="10" relevant="MMSSmall = true"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    34
            <option name="medium" value="20" custom:foo="4"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    35
            <option name="large" value="30"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    36
            <xs:minInclusive value="0"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    37
            <xs:maxInclusive value="50"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    38
        </setting>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    39
    </feature>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents:
diff changeset
    40
</configuration>