/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to xml/info/sox.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
***************************************************
 
2
*** .sox (Schema for Object-Oriented XML)
 
3
***************************************************
 
4
Including in XML
 
5
----------------
 
6
<?xml version = "1.0" encoding = "UTF-8"?>
 
7
<?soxtype file:///addressbook.sox?>
 
8
....
 
9
 
 
10
Sample
 
11
------
 
12
<?xml version = "1.0" encoding = "UTF-8"?>
 
13
<!DOCTYPE schema SYSTEM "urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">
 
14
<schema uri = "file:///zbook.sox" soxlang-version = "V0.2.2">
 
15
<elementtype name="addressbook">
 
16
  <model>
 
17
    <sequence>
 
18
        <element type = "name"/>
 
19
        <element type = "contact"/>
 
20
    </sequence>
 
21
  </model>
 
22
</elementtype>
 
23
<elementtype name="name"><model><sequence>
 
24
        <element type = "First Name"/>                 
 
25
        <element type = "Second Name"/>
 
26
</model></sequence></elementtype>
 
27
...
 
28
<elementtype name="First Name"><model>
 
29
        <string/>
 
30
</model></elementtype>
 
31
****
 
32
* Extending this class ;)
 
33
****
 
34
...
 
35
<join system = "file:///zbook_detailed.sox"/>
 
36
<elementtype name="addressbook_detailed">
 
37
  <extends type = "addressbook">                                   
 
38
    <append>
 
39
        <sequence>
 
40
                <element type = "birthday">
 
41
        </sequence>
 
42
    </append>
 
43
  </etends>
 
44
</elementtype>