1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | This file is part of DocBook V5.0
|
---|
4 |
|
---|
5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
8 | Organization for the Advancement of Structured Information
|
---|
9 | Standards (OASIS).
|
---|
10 |
|
---|
11 | Release: $Id: msgset.rnc 8931 2010-10-20 13:29:20Z nwalsh $
|
---|
12 |
|
---|
13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
14 | and its accompanying documentation for any purpose and without fee
|
---|
15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
16 | notice and this paragraph appear in all copies. The copyright
|
---|
17 | holders make no representation about the suitability of the schema
|
---|
18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
19 | warranty.
|
---|
20 |
|
---|
21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
22 | variant of DocBook. See the reference documentation
|
---|
23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
24 | for more information.
|
---|
25 |
|
---|
26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
28 | information, see http://www.oasis-open.org/docbook/.
|
---|
29 |
|
---|
30 | ======================================================================
|
---|
31 | -->
|
---|
32 | <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
|
---|
33 | <start combine="choice">
|
---|
34 | <choice>
|
---|
35 | <ref name="db.msg"/>
|
---|
36 | <ref name="db.msgexplan"/>
|
---|
37 | <ref name="db.msgmain"/>
|
---|
38 | <ref name="db.msgrel"/>
|
---|
39 | <ref name="db.msgset"/>
|
---|
40 | <ref name="db.msgsub"/>
|
---|
41 | </choice>
|
---|
42 | </start>
|
---|
43 | <define name="db.technical.blocks" combine="choice">
|
---|
44 | <ref name="db.msgset"/>
|
---|
45 | </define>
|
---|
46 | <!-- ====================================================================== -->
|
---|
47 | <div>
|
---|
48 | <db:refname>msgset</db:refname>
|
---|
49 | <db:refpurpose>A detailed set of messages, usually error messages</db:refpurpose>
|
---|
50 | <define name="db.msgset.role.attribute">
|
---|
51 | <attribute name="role"/>
|
---|
52 | </define>
|
---|
53 | <define name="db.msgset.attlist">
|
---|
54 | <interleave>
|
---|
55 | <optional>
|
---|
56 | <ref name="db.msgset.role.attribute"/>
|
---|
57 | </optional>
|
---|
58 | <ref name="db.common.attributes"/>
|
---|
59 | <ref name="db.common.linking.attributes"/>
|
---|
60 | </interleave>
|
---|
61 | </define>
|
---|
62 | <define name="db.msgset.info">
|
---|
63 | <ref name="db._info.title.only"/>
|
---|
64 | </define>
|
---|
65 | <define name="db.msgset">
|
---|
66 | <element name="msgset">
|
---|
67 | <ref name="db.msgset.attlist"/>
|
---|
68 | <ref name="db.msgset.info"/>
|
---|
69 | <choice>
|
---|
70 | <oneOrMore>
|
---|
71 | <ref name="db.msgentry"/>
|
---|
72 | </oneOrMore>
|
---|
73 | <oneOrMore>
|
---|
74 | <ref name="db.simplemsgentry"/>
|
---|
75 | </oneOrMore>
|
---|
76 | </choice>
|
---|
77 | </element>
|
---|
78 | </define>
|
---|
79 | </div>
|
---|
80 | <!-- ====================================================================== -->
|
---|
81 | <div>
|
---|
82 | <db:refname>msgentry</db:refname>
|
---|
83 | <db:refpurpose>A wrapper for an entry in a message set</db:refpurpose>
|
---|
84 | <define name="db.msgentry.role.attribute">
|
---|
85 | <attribute name="role"/>
|
---|
86 | </define>
|
---|
87 | <define name="db.msgentry.attlist">
|
---|
88 | <interleave>
|
---|
89 | <optional>
|
---|
90 | <ref name="db.msgentry.role.attribute"/>
|
---|
91 | </optional>
|
---|
92 | <ref name="db.common.attributes"/>
|
---|
93 | <ref name="db.common.linking.attributes"/>
|
---|
94 | </interleave>
|
---|
95 | </define>
|
---|
96 | <define name="db.msgentry">
|
---|
97 | <element name="msgentry">
|
---|
98 | <ref name="db.msgentry.attlist"/>
|
---|
99 | <oneOrMore>
|
---|
100 | <ref name="db.msg"/>
|
---|
101 | </oneOrMore>
|
---|
102 | <optional>
|
---|
103 | <ref name="db.msginfo"/>
|
---|
104 | </optional>
|
---|
105 | <zeroOrMore>
|
---|
106 | <ref name="db.msgexplan"/>
|
---|
107 | </zeroOrMore>
|
---|
108 | </element>
|
---|
109 | </define>
|
---|
110 | </div>
|
---|
111 | <!-- ====================================================================== -->
|
---|
112 | <div>
|
---|
113 | <db:refname>simplemsgentry</db:refname>
|
---|
114 | <db:refpurpose>A wrapper for a simpler entry in a message set</db:refpurpose>
|
---|
115 | <define name="db.simplemsgentry.role.attribute">
|
---|
116 | <attribute name="role"/>
|
---|
117 | </define>
|
---|
118 | <define name="db.simplemsgentry.msgaud.attribute">
|
---|
119 | <attribute name="msgaud">
|
---|
120 | <db:refpurpose>The audience to which the message relevant</db:refpurpose>
|
---|
121 | </attribute>
|
---|
122 | </define>
|
---|
123 | <define name="db.simplemsgentry.msgorig.attribute">
|
---|
124 | <attribute name="msgorig">
|
---|
125 | <db:refpurpose>The origin of the message</db:refpurpose>
|
---|
126 | </attribute>
|
---|
127 | </define>
|
---|
128 | <define name="db.simplemsgentry.msglevel.attribute">
|
---|
129 | <attribute name="msglevel">
|
---|
130 | <db:refpurpose>The level of importance or severity of a message</db:refpurpose>
|
---|
131 | </attribute>
|
---|
132 | </define>
|
---|
133 | <define name="db.simplemsgentry.attlist">
|
---|
134 | <interleave>
|
---|
135 | <optional>
|
---|
136 | <ref name="db.simplemsgentry.role.attribute"/>
|
---|
137 | </optional>
|
---|
138 | <ref name="db.common.attributes"/>
|
---|
139 | <ref name="db.common.linking.attributes"/>
|
---|
140 | <optional>
|
---|
141 | <ref name="db.simplemsgentry.msgaud.attribute"/>
|
---|
142 | </optional>
|
---|
143 | <optional>
|
---|
144 | <ref name="db.simplemsgentry.msgorig.attribute"/>
|
---|
145 | </optional>
|
---|
146 | <optional>
|
---|
147 | <ref name="db.simplemsgentry.msglevel.attribute"/>
|
---|
148 | </optional>
|
---|
149 | </interleave>
|
---|
150 | </define>
|
---|
151 | <define name="db.simplemsgentry">
|
---|
152 | <element name="simplemsgentry">
|
---|
153 | <ref name="db.simplemsgentry.attlist"/>
|
---|
154 | <ref name="db.msgtext"/>
|
---|
155 | <oneOrMore>
|
---|
156 | <ref name="db.msgexplan"/>
|
---|
157 | </oneOrMore>
|
---|
158 | </element>
|
---|
159 | </define>
|
---|
160 | </div>
|
---|
161 | <!-- ====================================================================== -->
|
---|
162 | <div>
|
---|
163 | <db:refname>msg</db:refname>
|
---|
164 | <db:refpurpose>A message in a message set</db:refpurpose>
|
---|
165 | <define name="db.msg.role.attribute">
|
---|
166 | <attribute name="role"/>
|
---|
167 | </define>
|
---|
168 | <define name="db.msg.attlist">
|
---|
169 | <interleave>
|
---|
170 | <optional>
|
---|
171 | <ref name="db.msg.role.attribute"/>
|
---|
172 | </optional>
|
---|
173 | <ref name="db.common.attributes"/>
|
---|
174 | <ref name="db.common.linking.attributes"/>
|
---|
175 | </interleave>
|
---|
176 | </define>
|
---|
177 | <define name="db.msg.info">
|
---|
178 | <ref name="db._info.title.only"/>
|
---|
179 | </define>
|
---|
180 | <define name="db.msg">
|
---|
181 | <element name="msg">
|
---|
182 | <ref name="db.msg.attlist"/>
|
---|
183 | <ref name="db.msg.info"/>
|
---|
184 | <ref name="db.msgmain"/>
|
---|
185 | <zeroOrMore>
|
---|
186 | <choice>
|
---|
187 | <ref name="db.msgsub"/>
|
---|
188 | <ref name="db.msgrel"/>
|
---|
189 | </choice>
|
---|
190 | </zeroOrMore>
|
---|
191 | </element>
|
---|
192 | </define>
|
---|
193 | </div>
|
---|
194 | <!-- ====================================================================== -->
|
---|
195 | <div>
|
---|
196 | <db:refname>msgmain</db:refname>
|
---|
197 | <db:refpurpose>The primary component of a message in a message set </db:refpurpose>
|
---|
198 | <define name="db.msgmain.role.attribute">
|
---|
199 | <attribute name="role"/>
|
---|
200 | </define>
|
---|
201 | <define name="db.msgmain.attlist">
|
---|
202 | <interleave>
|
---|
203 | <optional>
|
---|
204 | <ref name="db.msgmain.role.attribute"/>
|
---|
205 | </optional>
|
---|
206 | <ref name="db.common.attributes"/>
|
---|
207 | <ref name="db.common.linking.attributes"/>
|
---|
208 | </interleave>
|
---|
209 | </define>
|
---|
210 | <define name="db.msgmain.info">
|
---|
211 | <ref name="db._info.title.only"/>
|
---|
212 | </define>
|
---|
213 | <define name="db.msgmain">
|
---|
214 | <element name="msgmain">
|
---|
215 | <ref name="db.msgmain.attlist"/>
|
---|
216 | <ref name="db.msgmain.info"/>
|
---|
217 | <ref name="db.msgtext"/>
|
---|
218 | </element>
|
---|
219 | </define>
|
---|
220 | </div>
|
---|
221 | <!-- ====================================================================== -->
|
---|
222 | <div>
|
---|
223 | <db:refname>msgsub</db:refname>
|
---|
224 | <db:refpurpose>A subcomponent of a message in a message set</db:refpurpose>
|
---|
225 | <define name="db.msgsub.role.attribute">
|
---|
226 | <attribute name="role"/>
|
---|
227 | </define>
|
---|
228 | <define name="db.msgsub.attlist">
|
---|
229 | <interleave>
|
---|
230 | <optional>
|
---|
231 | <ref name="db.msgsub.role.attribute"/>
|
---|
232 | </optional>
|
---|
233 | <ref name="db.common.attributes"/>
|
---|
234 | <ref name="db.common.linking.attributes"/>
|
---|
235 | </interleave>
|
---|
236 | </define>
|
---|
237 | <define name="db.msgsub.info">
|
---|
238 | <ref name="db._info.title.only"/>
|
---|
239 | </define>
|
---|
240 | <define name="db.msgsub">
|
---|
241 | <element name="msgsub">
|
---|
242 | <ref name="db.msgsub.attlist"/>
|
---|
243 | <ref name="db.msgsub.info"/>
|
---|
244 | <ref name="db.msgtext"/>
|
---|
245 | </element>
|
---|
246 | </define>
|
---|
247 | </div>
|
---|
248 | <!-- ====================================================================== -->
|
---|
249 | <div>
|
---|
250 | <db:refname>msgrel</db:refname>
|
---|
251 | <db:refpurpose>A related component of a message in a message set</db:refpurpose>
|
---|
252 | <define name="db.msgrel.role.attribute">
|
---|
253 | <attribute name="role"/>
|
---|
254 | </define>
|
---|
255 | <define name="db.msgrel.attlist">
|
---|
256 | <interleave>
|
---|
257 | <optional>
|
---|
258 | <ref name="db.msgrel.role.attribute"/>
|
---|
259 | </optional>
|
---|
260 | <ref name="db.common.attributes"/>
|
---|
261 | <ref name="db.common.linking.attributes"/>
|
---|
262 | </interleave>
|
---|
263 | </define>
|
---|
264 | <define name="db.msgrel.info">
|
---|
265 | <ref name="db._info.title.only"/>
|
---|
266 | </define>
|
---|
267 | <define name="db.msgrel">
|
---|
268 | <element name="msgrel">
|
---|
269 | <ref name="db.msgrel.attlist"/>
|
---|
270 | <ref name="db.msgrel.info"/>
|
---|
271 | <ref name="db.msgtext"/>
|
---|
272 | </element>
|
---|
273 | </define>
|
---|
274 | </div>
|
---|
275 | <!-- ====================================================================== -->
|
---|
276 | <div>
|
---|
277 | <db:refname>msgtext</db:refname>
|
---|
278 | <db:refpurpose>The actual text of a message component in a message set</db:refpurpose>
|
---|
279 | <define name="db.msgtext.role.attribute">
|
---|
280 | <attribute name="role"/>
|
---|
281 | </define>
|
---|
282 | <define name="db.msgtext.attlist">
|
---|
283 | <interleave>
|
---|
284 | <optional>
|
---|
285 | <ref name="db.msgtext.role.attribute"/>
|
---|
286 | </optional>
|
---|
287 | <ref name="db.common.attributes"/>
|
---|
288 | <ref name="db.common.linking.attributes"/>
|
---|
289 | </interleave>
|
---|
290 | </define>
|
---|
291 | <define name="db.msgtext">
|
---|
292 | <element name="msgtext">
|
---|
293 | <ref name="db.msgtext.attlist"/>
|
---|
294 | <oneOrMore>
|
---|
295 | <ref name="db.all.blocks"/>
|
---|
296 | </oneOrMore>
|
---|
297 | </element>
|
---|
298 | </define>
|
---|
299 | </div>
|
---|
300 | <!-- ====================================================================== -->
|
---|
301 | <div>
|
---|
302 | <db:refname>msginfo</db:refname>
|
---|
303 | <db:refpurpose>Information about a message in a message set</db:refpurpose>
|
---|
304 | <define name="db.msginfo.role.attribute">
|
---|
305 | <attribute name="role"/>
|
---|
306 | </define>
|
---|
307 | <define name="db.msginfo.attlist">
|
---|
308 | <interleave>
|
---|
309 | <optional>
|
---|
310 | <ref name="db.msginfo.role.attribute"/>
|
---|
311 | </optional>
|
---|
312 | <ref name="db.common.attributes"/>
|
---|
313 | <ref name="db.common.linking.attributes"/>
|
---|
314 | </interleave>
|
---|
315 | </define>
|
---|
316 | <define name="db.msginfo">
|
---|
317 | <element name="msginfo">
|
---|
318 | <ref name="db.msginfo.attlist"/>
|
---|
319 | <zeroOrMore>
|
---|
320 | <choice>
|
---|
321 | <ref name="db.msglevel"/>
|
---|
322 | <ref name="db.msgorig"/>
|
---|
323 | <ref name="db.msgaud"/>
|
---|
324 | </choice>
|
---|
325 | </zeroOrMore>
|
---|
326 | </element>
|
---|
327 | </define>
|
---|
328 | </div>
|
---|
329 | <!-- ====================================================================== -->
|
---|
330 | <div>
|
---|
331 | <db:refname>msglevel</db:refname>
|
---|
332 | <db:refpurpose>The level of importance or severity of a message in a message set</db:refpurpose>
|
---|
333 | <define name="db.msglevel.role.attribute">
|
---|
334 | <attribute name="role"/>
|
---|
335 | </define>
|
---|
336 | <define name="db.msglevel.attlist">
|
---|
337 | <interleave>
|
---|
338 | <optional>
|
---|
339 | <ref name="db.msglevel.role.attribute"/>
|
---|
340 | </optional>
|
---|
341 | <ref name="db.common.attributes"/>
|
---|
342 | <ref name="db.common.linking.attributes"/>
|
---|
343 | </interleave>
|
---|
344 | </define>
|
---|
345 | <define name="db.msglevel">
|
---|
346 | <element name="msglevel">
|
---|
347 | <ref name="db.msglevel.attlist"/>
|
---|
348 | <ref name="db._text"/>
|
---|
349 | </element>
|
---|
350 | </define>
|
---|
351 | </div>
|
---|
352 | <!-- ====================================================================== -->
|
---|
353 | <div>
|
---|
354 | <db:refname>msgorig</db:refname>
|
---|
355 | <db:refpurpose>The origin of a message in a message set</db:refpurpose>
|
---|
356 | <define name="db.msgorig.role.attribute">
|
---|
357 | <attribute name="role"/>
|
---|
358 | </define>
|
---|
359 | <define name="db.msgorig.attlist">
|
---|
360 | <interleave>
|
---|
361 | <optional>
|
---|
362 | <ref name="db.msgorig.role.attribute"/>
|
---|
363 | </optional>
|
---|
364 | <ref name="db.common.attributes"/>
|
---|
365 | <ref name="db.common.linking.attributes"/>
|
---|
366 | </interleave>
|
---|
367 | </define>
|
---|
368 | <define name="db.msgorig">
|
---|
369 | <element name="msgorig">
|
---|
370 | <ref name="db.msgorig.attlist"/>
|
---|
371 | <ref name="db._text"/>
|
---|
372 | </element>
|
---|
373 | </define>
|
---|
374 | </div>
|
---|
375 | <!-- ====================================================================== -->
|
---|
376 | <div>
|
---|
377 | <db:refname>msgaud</db:refname>
|
---|
378 | <db:refpurpose>The audience to which a message in a message set is relevant</db:refpurpose>
|
---|
379 | <define name="db.msgaud.role.attribute">
|
---|
380 | <attribute name="role"/>
|
---|
381 | </define>
|
---|
382 | <define name="db.msgaud.attlist">
|
---|
383 | <interleave>
|
---|
384 | <optional>
|
---|
385 | <ref name="db.msgaud.role.attribute"/>
|
---|
386 | </optional>
|
---|
387 | <ref name="db.common.attributes"/>
|
---|
388 | <ref name="db.common.linking.attributes"/>
|
---|
389 | </interleave>
|
---|
390 | </define>
|
---|
391 | <define name="db.msgaud">
|
---|
392 | <element name="msgaud">
|
---|
393 | <ref name="db.msgaud.attlist"/>
|
---|
394 | <ref name="db._text"/>
|
---|
395 | </element>
|
---|
396 | </define>
|
---|
397 | </div>
|
---|
398 | <!-- ====================================================================== -->
|
---|
399 | <div>
|
---|
400 | <db:refname>msgexplan</db:refname>
|
---|
401 | <db:refpurpose>Explanatory material relating to a message in a message set</db:refpurpose>
|
---|
402 | <define name="db.msgexplan.role.attribute">
|
---|
403 | <attribute name="role"/>
|
---|
404 | </define>
|
---|
405 | <define name="db.msgexplan.attlist">
|
---|
406 | <interleave>
|
---|
407 | <optional>
|
---|
408 | <ref name="db.msgexplan.role.attribute"/>
|
---|
409 | </optional>
|
---|
410 | <ref name="db.common.attributes"/>
|
---|
411 | <ref name="db.common.linking.attributes"/>
|
---|
412 | </interleave>
|
---|
413 | </define>
|
---|
414 | <define name="db.msgexplan.info">
|
---|
415 | <ref name="db._info.title.only"/>
|
---|
416 | </define>
|
---|
417 | <define name="db.msgexplan">
|
---|
418 | <element name="msgexplan">
|
---|
419 | <ref name="db.msgexplan.attlist"/>
|
---|
420 | <ref name="db.msgexplan.info"/>
|
---|
421 | <oneOrMore>
|
---|
422 | <ref name="db.all.blocks"/>
|
---|
423 | </oneOrMore>
|
---|
424 | </element>
|
---|
425 | </define>
|
---|
426 | </div>
|
---|
427 | </grammar>
|
---|