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: qandaset.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:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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.qandadiv"/>
|
---|
36 | <ref name="db.qandaentry"/>
|
---|
37 | <ref name="db.qandaset"/>
|
---|
38 | </choice>
|
---|
39 | </start>
|
---|
40 | <define name="db.list.blocks" combine="choice">
|
---|
41 | <ref name="db.qandaset"/>
|
---|
42 | </define>
|
---|
43 | <!-- ====================================================================== -->
|
---|
44 | <div>
|
---|
45 | <db:refname>qandaset</db:refname>
|
---|
46 | <db:refpurpose>A question-and-answer set</db:refpurpose>
|
---|
47 | <define name="db.qandaset.role.attribute">
|
---|
48 | <attribute name="role"/>
|
---|
49 | </define>
|
---|
50 | <define name="db.qandaset.defaultlabel.enumeration">
|
---|
51 | <choice>
|
---|
52 | <value>none</value>
|
---|
53 | <a:documentation>No labels</a:documentation>
|
---|
54 | <value>number</value>
|
---|
55 | <a:documentation>Numeric labels</a:documentation>
|
---|
56 | <value>qanda</value>
|
---|
57 | <a:documentation>"Q:" and "A:" labels</a:documentation>
|
---|
58 | </choice>
|
---|
59 | </define>
|
---|
60 | <define name="db.qandaset.defaultlabel.attribute">
|
---|
61 | <attribute name="defaultlabel">
|
---|
62 | <db:refpurpose>Specifies the default labelling</db:refpurpose>
|
---|
63 | <ref name="db.qandaset.defaultlabel.enumeration"/>
|
---|
64 | </attribute>
|
---|
65 | </define>
|
---|
66 | <define name="db.qandaset.attlist">
|
---|
67 | <interleave>
|
---|
68 | <optional>
|
---|
69 | <ref name="db.qandaset.role.attribute"/>
|
---|
70 | </optional>
|
---|
71 | <ref name="db.common.attributes"/>
|
---|
72 | <ref name="db.common.linking.attributes"/>
|
---|
73 | <optional>
|
---|
74 | <ref name="db.qandaset.defaultlabel.attribute"/>
|
---|
75 | </optional>
|
---|
76 | </interleave>
|
---|
77 | </define>
|
---|
78 | <define name="db.qandaset.info">
|
---|
79 | <ref name="db._info.title.only"/>
|
---|
80 | </define>
|
---|
81 | <define name="db.qandaset">
|
---|
82 | <element name="qandaset">
|
---|
83 | <ref name="db.qandaset.attlist"/>
|
---|
84 | <ref name="db.qandaset.info"/>
|
---|
85 | <zeroOrMore>
|
---|
86 | <ref name="db.all.blocks"/>
|
---|
87 | </zeroOrMore>
|
---|
88 | <choice>
|
---|
89 | <oneOrMore>
|
---|
90 | <ref name="db.qandadiv"/>
|
---|
91 | </oneOrMore>
|
---|
92 | <oneOrMore>
|
---|
93 | <ref name="db.qandaentry"/>
|
---|
94 | </oneOrMore>
|
---|
95 | </choice>
|
---|
96 | </element>
|
---|
97 | </define>
|
---|
98 | </div>
|
---|
99 | <!-- ====================================================================== -->
|
---|
100 | <div>
|
---|
101 | <db:refname>qandadiv</db:refname>
|
---|
102 | <db:refpurpose>A titled division in a qandaset</db:refpurpose>
|
---|
103 | <define name="db.qandadiv.role.attribute">
|
---|
104 | <attribute name="role"/>
|
---|
105 | </define>
|
---|
106 | <define name="db.qandadiv.attlist">
|
---|
107 | <interleave>
|
---|
108 | <optional>
|
---|
109 | <ref name="db.qandadiv.role.attribute"/>
|
---|
110 | </optional>
|
---|
111 | <ref name="db.common.attributes"/>
|
---|
112 | <ref name="db.common.linking.attributes"/>
|
---|
113 | </interleave>
|
---|
114 | </define>
|
---|
115 | <define name="db.qandadiv.info">
|
---|
116 | <ref name="db._info.title.only"/>
|
---|
117 | </define>
|
---|
118 | <define name="db.qandadiv">
|
---|
119 | <element name="qandadiv">
|
---|
120 | <ref name="db.qandadiv.attlist"/>
|
---|
121 | <ref name="db.qandadiv.info"/>
|
---|
122 | <zeroOrMore>
|
---|
123 | <ref name="db.all.blocks"/>
|
---|
124 | </zeroOrMore>
|
---|
125 | <choice>
|
---|
126 | <oneOrMore>
|
---|
127 | <ref name="db.qandadiv"/>
|
---|
128 | </oneOrMore>
|
---|
129 | <oneOrMore>
|
---|
130 | <ref name="db.qandaentry"/>
|
---|
131 | </oneOrMore>
|
---|
132 | </choice>
|
---|
133 | </element>
|
---|
134 | </define>
|
---|
135 | </div>
|
---|
136 | <!-- ====================================================================== -->
|
---|
137 | <div>
|
---|
138 | <db:refname>qandaentry</db:refname>
|
---|
139 | <db:refpurpose>A question/answer set within a qandaset</db:refpurpose>
|
---|
140 | <define name="db.qandaentry.role.attribute">
|
---|
141 | <attribute name="role"/>
|
---|
142 | </define>
|
---|
143 | <define name="db.qandaentry.attlist">
|
---|
144 | <interleave>
|
---|
145 | <optional>
|
---|
146 | <ref name="db.qandaentry.role.attribute"/>
|
---|
147 | </optional>
|
---|
148 | <ref name="db.common.attributes"/>
|
---|
149 | <ref name="db.common.linking.attributes"/>
|
---|
150 | </interleave>
|
---|
151 | </define>
|
---|
152 | <define name="db.qandaentry.info">
|
---|
153 | <ref name="db._info.title.only"/>
|
---|
154 | </define>
|
---|
155 | <define name="db.qandaentry">
|
---|
156 | <element name="qandaentry">
|
---|
157 | <ref name="db.qandaentry.attlist"/>
|
---|
158 | <ref name="db.qandaentry.info"/>
|
---|
159 | <ref name="db.question"/>
|
---|
160 | <zeroOrMore>
|
---|
161 | <ref name="db.answer"/>
|
---|
162 | </zeroOrMore>
|
---|
163 | </element>
|
---|
164 | </define>
|
---|
165 | </div>
|
---|
166 | <!-- ====================================================================== -->
|
---|
167 | <div>
|
---|
168 | <db:refname>question</db:refname>
|
---|
169 | <db:refpurpose>A question in a qandaset</db:refpurpose>
|
---|
170 | <define name="db.question.role.attribute">
|
---|
171 | <attribute name="role"/>
|
---|
172 | </define>
|
---|
173 | <define name="db.question.attlist">
|
---|
174 | <interleave>
|
---|
175 | <optional>
|
---|
176 | <ref name="db.question.role.attribute"/>
|
---|
177 | </optional>
|
---|
178 | <ref name="db.common.attributes"/>
|
---|
179 | <ref name="db.common.linking.attributes"/>
|
---|
180 | </interleave>
|
---|
181 | </define>
|
---|
182 | <define name="db.question">
|
---|
183 | <element name="question">
|
---|
184 | <ref name="db.question.attlist"/>
|
---|
185 | <optional>
|
---|
186 | <ref name="db.label"/>
|
---|
187 | </optional>
|
---|
188 | <oneOrMore>
|
---|
189 | <ref name="db.all.blocks"/>
|
---|
190 | </oneOrMore>
|
---|
191 | </element>
|
---|
192 | </define>
|
---|
193 | </div>
|
---|
194 | <!-- ====================================================================== -->
|
---|
195 | <div>
|
---|
196 | <db:refname>answer</db:refname>
|
---|
197 | <db:refpurpose>An answer to a question posed in a qandaset</db:refpurpose>
|
---|
198 | <define name="db.answer.role.attribute">
|
---|
199 | <attribute name="role"/>
|
---|
200 | </define>
|
---|
201 | <define name="db.answer.attlist">
|
---|
202 | <interleave>
|
---|
203 | <optional>
|
---|
204 | <ref name="db.answer.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.answer">
|
---|
211 | <element name="answer">
|
---|
212 | <ref name="db.answer.attlist"/>
|
---|
213 | <optional>
|
---|
214 | <ref name="db.label"/>
|
---|
215 | </optional>
|
---|
216 | <oneOrMore>
|
---|
217 | <ref name="db.all.blocks"/>
|
---|
218 | </oneOrMore>
|
---|
219 | </element>
|
---|
220 | </define>
|
---|
221 | </div>
|
---|
222 | <!-- ====================================================================== -->
|
---|
223 | <div>
|
---|
224 | <db:refname>label</db:refname>
|
---|
225 | <db:refpurpose>A label on a question or answer</db:refpurpose>
|
---|
226 | <define name="db.label.role.attribute">
|
---|
227 | <attribute name="role"/>
|
---|
228 | </define>
|
---|
229 | <define name="db.label.attlist">
|
---|
230 | <interleave>
|
---|
231 | <optional>
|
---|
232 | <ref name="db.label.role.attribute"/>
|
---|
233 | </optional>
|
---|
234 | <ref name="db.common.attributes"/>
|
---|
235 | <ref name="db.common.linking.attributes"/>
|
---|
236 | </interleave>
|
---|
237 | </define>
|
---|
238 | <define name="db.label">
|
---|
239 | <element name="label">
|
---|
240 | <ref name="db.label.attlist"/>
|
---|
241 | <ref name="db._text"/>
|
---|
242 | </element>
|
---|
243 | </define>
|
---|
244 | </div>
|
---|
245 | </grammar>
|
---|