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
|
***************************************************
*** .sox (Schema for Object-Oriented XML)
***************************************************
Including in XML
----------------
<?xml version = "1.0" encoding = "UTF-8"?>
<?soxtype file:///addressbook.sox?>
....
Sample
------
<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE schema SYSTEM "urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">
<schema uri = "file:///zbook.sox" soxlang-version = "V0.2.2">
<elementtype name="addressbook">
<model>
<sequence>
<element type = "name"/>
<element type = "contact"/>
</sequence>
</model>
</elementtype>
<elementtype name="name"><model><sequence>
<element type = "First Name"/>
<element type = "Second Name"/>
</model></sequence></elementtype>
...
<elementtype name="First Name"><model>
<string/>
</model></elementtype>
****
* Extending this class ;)
****
...
<join system = "file:///zbook_detailed.sox"/>
<elementtype name="addressbook_detailed">
<extends type = "addressbook">
<append>
<sequence>
<element type = "birthday">
</sequence>
</append>
</etends>
</elementtype>
|