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: pool.rnc 7466 2007-09-27 14:03:55Z 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" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
---|
33 | <define name="db.domain.inlines" combine="choice">
|
---|
34 | <ref name="db.markup.inlines"/>
|
---|
35 | </define>
|
---|
36 | <define name="db.userinput.inlines" combine="choice">
|
---|
37 | <ref name="db.markup.inlines"/>
|
---|
38 | </define>
|
---|
39 | <define name="db.computeroutput.inlines" combine="choice">
|
---|
40 | <ref name="db.markup.inlines"/>
|
---|
41 | </define>
|
---|
42 | <define name="db.markup.inlines">
|
---|
43 | <choice>
|
---|
44 | <ref name="db.tag"/>
|
---|
45 | <ref name="db.markup"/>
|
---|
46 | <ref name="db.token"/>
|
---|
47 | <ref name="db.symbol"/>
|
---|
48 | <ref name="db.literal"/>
|
---|
49 | <ref name="db.code"/>
|
---|
50 | <ref name="db.constant"/>
|
---|
51 | <ref name="db.email"/>
|
---|
52 | <ref name="db.uri"/>
|
---|
53 | </choice>
|
---|
54 | </define>
|
---|
55 | <define name="db.initializer.inlines" combine="choice">
|
---|
56 | <ref name="db.markup.inlines"/>
|
---|
57 | </define>
|
---|
58 | <!-- ====================================================================== -->
|
---|
59 | <div>
|
---|
60 | <db:refname>markup</db:refname>
|
---|
61 | <db:refpurpose>A string of formatting markup in text that is to be represented literally</db:refpurpose>
|
---|
62 | <define name="db.markup.role.attribute">
|
---|
63 | <attribute name="role"/>
|
---|
64 | </define>
|
---|
65 | <define name="db.markup.attlist">
|
---|
66 | <interleave>
|
---|
67 | <optional>
|
---|
68 | <ref name="db.markup.role.attribute"/>
|
---|
69 | </optional>
|
---|
70 | <ref name="db.common.attributes"/>
|
---|
71 | <ref name="db.common.linking.attributes"/>
|
---|
72 | </interleave>
|
---|
73 | </define>
|
---|
74 | <define name="db.markup">
|
---|
75 | <element name="markup">
|
---|
76 | <ref name="db.markup.attlist"/>
|
---|
77 | <ref name="db._text"/>
|
---|
78 | </element>
|
---|
79 | </define>
|
---|
80 | </div>
|
---|
81 | <!-- ====================================================================== -->
|
---|
82 | <div>
|
---|
83 | <db:refname>tag</db:refname>
|
---|
84 | <db:refpurpose>A component of XML (or SGML) markup</db:refpurpose>
|
---|
85 | <define name="db.tag.role.attribute">
|
---|
86 | <attribute name="role"/>
|
---|
87 | </define>
|
---|
88 | <define name="db.tag.class.enumeration">
|
---|
89 | <choice>
|
---|
90 | <value>attribute</value>
|
---|
91 | <a:documentation>An attribute</a:documentation>
|
---|
92 | <value>attvalue</value>
|
---|
93 | <a:documentation>An attribute value</a:documentation>
|
---|
94 | <value>element</value>
|
---|
95 | <a:documentation>An element</a:documentation>
|
---|
96 | <value>emptytag</value>
|
---|
97 | <a:documentation>An empty element tag</a:documentation>
|
---|
98 | <value>endtag</value>
|
---|
99 | <a:documentation>An end tag</a:documentation>
|
---|
100 | <value>genentity</value>
|
---|
101 | <a:documentation>A general entity</a:documentation>
|
---|
102 | <value>localname</value>
|
---|
103 | <a:documentation>The local name part of a qualified name</a:documentation>
|
---|
104 | <value>namespace</value>
|
---|
105 | <a:documentation>A namespace</a:documentation>
|
---|
106 | <value>numcharref</value>
|
---|
107 | <a:documentation>A numeric character reference</a:documentation>
|
---|
108 | <value>paramentity</value>
|
---|
109 | <a:documentation>A parameter entity</a:documentation>
|
---|
110 | <value>pi</value>
|
---|
111 | <a:documentation>A processing instruction</a:documentation>
|
---|
112 | <value>prefix</value>
|
---|
113 | <a:documentation>The prefix part of a qualified name</a:documentation>
|
---|
114 | <value>comment</value>
|
---|
115 | <a:documentation>An SGML comment</a:documentation>
|
---|
116 | <value>starttag</value>
|
---|
117 | <a:documentation>A start tag</a:documentation>
|
---|
118 | <value>xmlpi</value>
|
---|
119 | <a:documentation>An XML processing instruction</a:documentation>
|
---|
120 | </choice>
|
---|
121 | </define>
|
---|
122 | <define name="db.tag.class.attribute">
|
---|
123 | <attribute name="class">
|
---|
124 | <db:refpurpose>Identifies the nature of the tag content</db:refpurpose>
|
---|
125 | <ref name="db.tag.class.enumeration"/>
|
---|
126 | </attribute>
|
---|
127 | </define>
|
---|
128 | <define name="db.tag.namespace.attribute">
|
---|
129 | <attribute name="namespace">
|
---|
130 | <db:refpurpose>Identifies the namespace of the tag content</db:refpurpose>
|
---|
131 | <data type="anyURI"/>
|
---|
132 | </attribute>
|
---|
133 | </define>
|
---|
134 | <define name="db.tag.attlist">
|
---|
135 | <interleave>
|
---|
136 | <optional>
|
---|
137 | <ref name="db.tag.role.attribute"/>
|
---|
138 | </optional>
|
---|
139 | <ref name="db.common.attributes"/>
|
---|
140 | <ref name="db.common.linking.attributes"/>
|
---|
141 | <optional>
|
---|
142 | <ref name="db.tag.class.attribute"/>
|
---|
143 | </optional>
|
---|
144 | <optional>
|
---|
145 | <ref name="db.tag.namespace.attribute"/>
|
---|
146 | </optional>
|
---|
147 | </interleave>
|
---|
148 | </define>
|
---|
149 | <define name="db.tag">
|
---|
150 | <element name="tag">
|
---|
151 | <ref name="db.tag.attlist"/>
|
---|
152 | <ref name="db._text"/>
|
---|
153 | </element>
|
---|
154 | </define>
|
---|
155 | </div>
|
---|
156 | <!-- ====================================================================== -->
|
---|
157 | <div>
|
---|
158 | <db:refname>symbol</db:refname>
|
---|
159 | <db:refpurpose>A name that is replaced by a value before processing</db:refpurpose>
|
---|
160 | <define name="db.symbol.class.attribute">
|
---|
161 | <attribute name="class">
|
---|
162 | <db:refpurpose>Identifies the class of symbol</db:refpurpose>
|
---|
163 | <value>limit</value>
|
---|
164 | <a:documentation>The value is a limit of some kind</a:documentation>
|
---|
165 | </attribute>
|
---|
166 | </define>
|
---|
167 | <define name="db.symbol.role.attribute">
|
---|
168 | <attribute name="role"/>
|
---|
169 | </define>
|
---|
170 | <define name="db.symbol.attlist">
|
---|
171 | <interleave>
|
---|
172 | <optional>
|
---|
173 | <ref name="db.symbol.role.attribute"/>
|
---|
174 | </optional>
|
---|
175 | <ref name="db.common.attributes"/>
|
---|
176 | <ref name="db.common.linking.attributes"/>
|
---|
177 | <optional>
|
---|
178 | <ref name="db.symbol.class.attribute"/>
|
---|
179 | </optional>
|
---|
180 | </interleave>
|
---|
181 | </define>
|
---|
182 | <define name="db.symbol">
|
---|
183 | <element name="symbol">
|
---|
184 | <ref name="db.symbol.attlist"/>
|
---|
185 | <ref name="db._text"/>
|
---|
186 | </element>
|
---|
187 | </define>
|
---|
188 | </div>
|
---|
189 | <!-- ====================================================================== -->
|
---|
190 | <div>
|
---|
191 | <db:refname>token</db:refname>
|
---|
192 | <db:refpurpose>A unit of information</db:refpurpose>
|
---|
193 | <define name="db.token.role.attribute">
|
---|
194 | <attribute name="role"/>
|
---|
195 | </define>
|
---|
196 | <define name="db.token.attlist">
|
---|
197 | <interleave>
|
---|
198 | <optional>
|
---|
199 | <ref name="db.token.role.attribute"/>
|
---|
200 | </optional>
|
---|
201 | <ref name="db.common.attributes"/>
|
---|
202 | <ref name="db.common.linking.attributes"/>
|
---|
203 | </interleave>
|
---|
204 | </define>
|
---|
205 | <define name="db.token">
|
---|
206 | <element name="token">
|
---|
207 | <ref name="db.token.attlist"/>
|
---|
208 | <ref name="db._text"/>
|
---|
209 | </element>
|
---|
210 | </define>
|
---|
211 | </div>
|
---|
212 | <!-- ====================================================================== -->
|
---|
213 | <div>
|
---|
214 | <db:refname>literal</db:refname>
|
---|
215 | <db:refpurpose>Inline text that is some literal value</db:refpurpose>
|
---|
216 | <define name="db.literal.role.attribute">
|
---|
217 | <attribute name="role"/>
|
---|
218 | </define>
|
---|
219 | <define name="db.literal.attlist">
|
---|
220 | <interleave>
|
---|
221 | <optional>
|
---|
222 | <ref name="db.literal.role.attribute"/>
|
---|
223 | </optional>
|
---|
224 | <ref name="db.common.attributes"/>
|
---|
225 | <ref name="db.common.linking.attributes"/>
|
---|
226 | </interleave>
|
---|
227 | </define>
|
---|
228 | <define name="db.literal">
|
---|
229 | <element name="literal">
|
---|
230 | <ref name="db.literal.attlist"/>
|
---|
231 | <ref name="db._text"/>
|
---|
232 | </element>
|
---|
233 | </define>
|
---|
234 | </div>
|
---|
235 | <!-- ====================================================================== -->
|
---|
236 | <div>
|
---|
237 | <db:refname>code</db:refname>
|
---|
238 | <db:refpurpose>An inline code fragment</db:refpurpose>
|
---|
239 | <define name="code.language.attribute">
|
---|
240 | <attribute name="language">
|
---|
241 | <db:refpurpose>Identifies the (computer) language of the code fragment</db:refpurpose>
|
---|
242 | </attribute>
|
---|
243 | </define>
|
---|
244 | <define name="db.code.role.attribute">
|
---|
245 | <attribute name="role"/>
|
---|
246 | </define>
|
---|
247 | <define name="db.code.attlist">
|
---|
248 | <interleave>
|
---|
249 | <optional>
|
---|
250 | <ref name="db.code.role.attribute"/>
|
---|
251 | </optional>
|
---|
252 | <ref name="db.common.attributes"/>
|
---|
253 | <ref name="db.common.linking.attributes"/>
|
---|
254 | <optional>
|
---|
255 | <ref name="code.language.attribute"/>
|
---|
256 | </optional>
|
---|
257 | </interleave>
|
---|
258 | </define>
|
---|
259 | <define name="db.code">
|
---|
260 | <element name="code">
|
---|
261 | <ref name="db.code.attlist"/>
|
---|
262 | <zeroOrMore>
|
---|
263 | <choice>
|
---|
264 | <ref name="db.programming.inlines"/>
|
---|
265 | <ref name="db._text"/>
|
---|
266 | </choice>
|
---|
267 | </zeroOrMore>
|
---|
268 | </element>
|
---|
269 | </define>
|
---|
270 | </div>
|
---|
271 | <!-- ====================================================================== -->
|
---|
272 | <div>
|
---|
273 | <db:refname>constant</db:refname>
|
---|
274 | <db:refpurpose>A programming or system constant</db:refpurpose>
|
---|
275 | <define name="db.constant.class.attribute">
|
---|
276 | <attribute name="class">
|
---|
277 | <db:refpurpose>Identifies the class of constant</db:refpurpose>
|
---|
278 | <value>limit</value>
|
---|
279 | <a:documentation>The value is a limit of some kind</a:documentation>
|
---|
280 | </attribute>
|
---|
281 | </define>
|
---|
282 | <define name="db.constant.role.attribute">
|
---|
283 | <attribute name="role"/>
|
---|
284 | </define>
|
---|
285 | <define name="db.constant.attlist">
|
---|
286 | <interleave>
|
---|
287 | <optional>
|
---|
288 | <ref name="db.constant.role.attribute"/>
|
---|
289 | </optional>
|
---|
290 | <ref name="db.common.attributes"/>
|
---|
291 | <ref name="db.common.linking.attributes"/>
|
---|
292 | <optional>
|
---|
293 | <ref name="db.constant.class.attribute"/>
|
---|
294 | </optional>
|
---|
295 | </interleave>
|
---|
296 | </define>
|
---|
297 | <define name="db.constant">
|
---|
298 | <element name="constant">
|
---|
299 | <ref name="db.constant.attlist"/>
|
---|
300 | <ref name="db._text"/>
|
---|
301 | </element>
|
---|
302 | </define>
|
---|
303 | </div>
|
---|
304 | </grammar>
|
---|