1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<document>
<ontology name="test">
<struct name="test" root="true">
<field>
<childRef ref="a"/>
<childRef ref="b"/>
</field>
</struct>
<struct name="a">
<primitive type="color.color"/>
</struct>
<struct name="b">
<primitive type="color.multipleColors"/>
</struct>
</ontology>
<typesystem name="color">
<struct name="color">
<field name="r" type="int"/>
<field name="g" type="int"/>
<field name="b" type="int"/>
</struct>
<struct name="multipleColors">
<field default="[
0,
255,
0
]" name="c1" type="color"/>
<field default="[
255,
0,
0
]" name="c2" type="color"/>
</struct>
<constant name="green" type="color" value="[
0,
255,
0
]"/>
<constant name="red" type="color" value="[
255,
0,
0
]"/>
</typesystem>
<test:test>
<test:a>[
"b"= 0,
"g"= 0,
"r"= 255
]</test:a>
<test:a>[
"b"= 0,
"g"= 255,
"r"= 0
]</test:a>
<test:b>[
"c1"= [
0,
255,
0
],
"c2"= [
100,
20,
30
]
]</test:b>
</test:test>
</document>
|