summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkii/x-corres.rng
blob: 09de5d267183d754b97b431801a07d0a23d7be5e (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?xml version="1.0" ?>

<?context-block begin grammar ?>

<grammar xmlns="http://relaxng.org/ns/structure/1.0">

  <?context-block end grammar ?>

  <?context-block begin contacts ?>

  <start>
    <ref name="contacts"/>
  </start>

  <define name="contacts">
    <element name="contacts">
      <zeroOrMore>
        <choice>
          <ref name="contacts.contact"/>
          <ref name="contacts.contactgroup"/>
          <ref name="contacts.contactfile"/>
        </choice>
      </zeroOrMore>
    </element>
  </define>

  <?context-block end contacts ?>

  <?context-block begin contact ?>

  <define name="contacts.contact">
    <element name="contact">
      <interleave>
        <optional> <ref name="contact.initials"/>        </optional>
        <optional> <ref name="contact.formalname"/>      </optional>
        <optional> <ref name="contact.informalname"/>    </optional>
        <optional> <ref name="contact.title"/>           </optional>
        <optional> <ref name="contact.prefix"/>          </optional>
        <optional> <ref name="contact.suffix"/>          </optional>
        <optional> <ref name="contact.telephone"/>       </optional>
        <optional> <ref name="contact.mobiletelephone"/> </optional>
        <optional> <ref name="contact.telefax"/>         </optional>
        <optional> <ref name="contact.email"/>           </optional>
        <optional> <ref name="contact.address"/>         </optional>
        <optional> <ref name="contact.information"/>     </optional>
      </interleave>
      <attribute name="label"/>
    </element>
  </define>

  <?context-block end contact ?>

  <?context-block begin fields ?>

  <define name="contact.initials">
    <element name="initials">
      <text/>
    </element>
  </define>

  <define name="contact.formalname">
    <element name="formalname">
      <text/>
    </element>
  </define>

  <define name="contact.informalname">
    <element name="informalname">
      <text/>
    </element>
  </define>

  <define name="contact.title">
    <element name="title">
      <text/>
    </element>
  </define>

  <define name="contact.prefix">
    <element name="prefix">
      <text/>
    </element>
  </define>

  <define name="contact.suffix">
    <element name="suffix">
      <text/>
    </element>
  </define>

  <define name="contact.telephone">
    <element name="telephone">
      <text/>
    </element>
  </define>

  <define name="contact.mobiletelephone">
    <element name="mobiletelephone">
      <text/>
    </element>
  </define>

  <define name="contact.telefax">
    <element name="telefax">
      <text/>
    </element>
  </define>

  <define name="contact.email">
    <element name="email">
      <text/>
    </element>
  </define>

  <define name="contact.address">
    <element name="address">
      <zeroOrMore>
        <ref name="contact.address.p"/>
      </zeroOrMore>
    </element>
  </define>

  <define name="contact.information">
    <element name="information">
      <text/>
    </element>
  </define>

  <define name="contact.address.p">
    <element name="p">
      <text/>
    </element>
  </define>

  <?context-block end fields ?>

  <?context-block begin contactgroup ?>

  <define name="contacts.contactgroup">
    <element name="contactgroup">
      <zeroOrMore>
        <ref name="contactgroup.member"/>
      </zeroOrMore>
      <attribute name="label"/>
    </element>
  </define>

  <define name="contactgroup.member">
    <element name="member">
      <text/>
    </element>
  </define>

  <?context-block end contactgroup ?>

  <?context-block begin contactfile ?>

  <define name="contacts.contactfile">
    <element name="contactfile">
      <text/>
    </element>
  </define>

  <?context-block end contactfile ?>

  <?context-block begin grammar ?>

</grammar>

<?context-block end grammar ?>