source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/schema/relaxng/callouts.rng@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 17.4 KB
RevLine 
[15c7d39]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: callouts.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" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
33 <start combine="choice">
34 <choice>
35 <ref name="db.calloutlist"/>
36 <ref name="db.programlistingco"/>
37 <ref name="db.screenco"/>
38 <ref name="db.imageobjectco"/>
39 </choice>
40 </start>
41 <define name="db.publishing.inlines" combine="choice">
42 <ref name="db.coref"/>
43 </define>
44 <define name="db.list.blocks" combine="choice">
45 <ref name="db.calloutlist"/>
46 </define>
47 <define name="db.verbatim.blocks" combine="choice">
48 <choice>
49 <ref name="db.programlistingco"/>
50 <ref name="db.screenco"/>
51 </choice>
52 </define>
53 <define name="db.computeroutput.inlines" combine="choice">
54 <ref name="db.co"/>
55 </define>
56 <define name="db.verbatim.inlines" combine="choice">
57 <ref name="db.co"/>
58 </define>
59 <define name="db.prompt.inlines" combine="choice">
60 <ref name="db.co"/>
61 </define>
62 <define name="db.systemitem.inlines" combine="choice">
63 <ref name="db.co"/>
64 </define>
65 <define name="db.userinput.inlines" combine="choice">
66 <ref name="db.co"/>
67 </define>
68 <define name="db.replaceable.inlines" combine="choice">
69 <ref name="db.co"/>
70 </define>
71 <define name="db.ubiq.inlines" combine="choice">
72 <ref name="db.coref"/>
73 </define>
74 <define name="db.mediaobject.content" combine="choice">
75 <ref name="db.imageobjectco"/>
76 </define>
77 <!-- ====================================================================== -->
78 <ctrl:other-attribute name="area.units.attrib" enum-name="area.units-enum.attribute" other-name="area.units-other.attributes"/>
79 <define name="db.area.units.enumeration">
80 <choice>
81 <value>calspair</value>
82 <a:documentation>Coordinates expressed as a pair of CALS graphic coordinates.</a:documentation>
83 <value>linecolumn</value>
84 <a:documentation>Coordinates expressed as a line and column.</a:documentation>
85 <value>linecolumnpair</value>
86 <a:documentation>Coordinates expressed as a pair of lines and columns.</a:documentation>
87 <value>linerange</value>
88 <a:documentation>Coordinates expressed as a line range.</a:documentation>
89 </choice>
90 </define>
91 <define name="db.area.units-enum.attribute">
92 <optional>
93 <attribute name="units">
94 <db:refpurpose>Identifies the units used in the coords attribute. The default units vary according to the type of callout specified: <db:tag class="attvalue">calspair</db:tag>
95 for graphics and <db:tag class="attvalue">linecolumn</db:tag>
96 for line-oriented elements.</db:refpurpose>
97 <ref name="db.area.units.enumeration"/>
98 </attribute>
99 </optional>
100 </define>
101 <define name="db.area.units-other.attributes">
102 <optional>
103 <attribute name="units">
104 <db:refpurpose>Indicates that non-standard units are used for this <db:tag>area</db:tag>
105. In this case <db:tag class="attribute">otherunits</db:tag>
106 must be specified.</db:refpurpose>
107 <value>other</value>
108 <a:documentation>Coordinates expressed in some non-standard units.</a:documentation>
109 </attribute>
110 </optional>
111 <attribute name="otherunits">
112 <db:refpurpose>Identifies the units used in the <db:tag class="attribute">coords</db:tag>
113 attribute when the <db:tag class="attribute">units</db:tag>
114 attribute is <db:quote>other</db:quote>
115. This attribute is forbidden otherwise.</db:refpurpose>
116 <data type="NMTOKEN"/>
117 </attribute>
118 </define>
119 <define name="db.area.units.attribute">
120 <choice>
121 <ref name="db.area.units-enum.attribute"/>
122 <ref name="db.area.units-other.attributes"/>
123 </choice>
124 </define>
125 <!-- ====================================================================== -->
126 <div>
127 <db:refname>calloutlist</db:refname>
128 <db:refpurpose>A list of <db:tag>callout</db:tag>
129s</db:refpurpose>
130 <define name="db.calloutlist.role.attribute">
131 <attribute name="role"/>
132 </define>
133 <define name="db.calloutlist.attlist">
134 <interleave>
135 <optional>
136 <ref name="db.calloutlist.role.attribute"/>
137 </optional>
138 <ref name="db.common.attributes"/>
139 <ref name="db.common.linking.attributes"/>
140 </interleave>
141 </define>
142 <define name="db.calloutlist.info">
143 <ref name="db._info.title.only"/>
144 </define>
145 <define name="db.calloutlist">
146 <element name="calloutlist">
147 <ref name="db.calloutlist.attlist"/>
148 <ref name="db.calloutlist.info"/>
149 <zeroOrMore>
150 <ref name="db.all.blocks"/>
151 </zeroOrMore>
152 <oneOrMore>
153 <ref name="db.callout"/>
154 </oneOrMore>
155 </element>
156 </define>
157 </div>
158 <!-- ====================================================================== -->
159 <div>
160 <db:refname>callout</db:refname>
161 <db:refpurpose>A <db:quote>called out</db:quote>
162 description of a marked area</db:refpurpose>
163 <define name="db.callout.role.attribute">
164 <attribute name="role"/>
165 </define>
166 <define name="db.callout.arearefs.attribute">
167 <attribute name="arearefs">
168 <db:refpurpose>Identifies the areas described by this callout.</db:refpurpose>
169 <data type="IDREFS"/>
170 </attribute>
171 </define>
172 <define name="db.callout.attlist">
173 <interleave>
174 <optional>
175 <ref name="db.callout.role.attribute"/>
176 </optional>
177 <ref name="db.common.attributes"/>
178 <ref name="db.callout.arearefs.attribute"/>
179 </interleave>
180 </define>
181 <define name="db.callout">
182 <element name="callout">
183 <ref name="db.callout.attlist"/>
184 <oneOrMore>
185 <ref name="db.all.blocks"/>
186 </oneOrMore>
187 </element>
188 </define>
189 </div>
190 <!-- ====================================================================== -->
191 <div>
192 <db:refname>programlistingco</db:refname>
193 <db:refpurpose>A program listing with associated areas used in callouts</db:refpurpose>
194 <define name="db.programlistingco.role.attribute">
195 <attribute name="role"/>
196 </define>
197 <define name="db.programlistingco.attlist">
198 <interleave>
199 <optional>
200 <ref name="db.programlistingco.role.attribute"/>
201 </optional>
202 <ref name="db.common.attributes"/>
203 <ref name="db.common.linking.attributes"/>
204 </interleave>
205 </define>
206 <define name="db.programlistingco.info">
207 <ref name="db._info.title.forbidden"/>
208 </define>
209 <define name="db.programlistingco">
210 <element name="programlistingco">
211 <ref name="db.programlistingco.attlist"/>
212 <ref name="db.programlistingco.info"/>
213 <ref name="db.areaspec"/>
214 <ref name="db.programlisting"/>
215 <zeroOrMore>
216 <ref name="db.calloutlist"/>
217 </zeroOrMore>
218 </element>
219 </define>
220 </div>
221 <!-- ====================================================================== -->
222 <div>
223 <db:refname>areaspec</db:refname>
224 <db:refpurpose>A collection of regions in a graphic or code example</db:refpurpose>
225 <define name="db.areaspec.role.attribute">
226 <attribute name="role"/>
227 </define>
228 <define name="db.areaspec.attlist">
229 <interleave>
230 <optional>
231 <ref name="db.areaspec.role.attribute"/>
232 </optional>
233 <ref name="db.common.attributes"/>
234 <ref name="db.common.linking.attributes"/>
235 <ref name="db.area.units.attribute"/>
236 </interleave>
237 </define>
238 <define name="db.areaspec">
239 <element name="areaspec">
240 <ref name="db.areaspec.attlist"/>
241 <oneOrMore>
242 <choice>
243 <ref name="db.area"/>
244 <ref name="db.areaset"/>
245 </choice>
246 </oneOrMore>
247 </element>
248 </define>
249 </div>
250 <!-- ====================================================================== -->
251 <div>
252 <db:refname>area</db:refname>
253 <db:refpurpose>A region defined for a callout in a graphic or code example</db:refpurpose>
254 <define name="db.area.role.attribute">
255 <attribute name="role"/>
256 </define>
257 <define name="db.area.linkends.attribute">
258 <attribute name="linkends">
259 <db:refpurpose>Point to the <db:tag>callout</db:tag>
260s which refer to this area. (This provides bidirectional linking which may be useful in online presentation.)</db:refpurpose>
261 <data type="IDREFS"/>
262 </attribute>
263 </define>
264 <define name="db.area.label.attribute">
265 <attribute name="label">
266 <db:refpurpose>Specifies an identifying number or string that may be used in presentation. The area label might be drawn on top of the figure, for example, at the position indicated by the coords attribute.</db:refpurpose>
267 </attribute>
268 </define>
269 <define name="db.area.coords.attribute">
270 <attribute name="coords">
271 <db:refpurpose>Provides the coordinates of the area. The coordinates must be interpreted using the <db:tag class="attribute">units</db:tag>
272 specified.</db:refpurpose>
273 </attribute>
274 </define>
275 <define name="db.area.attlist">
276 <interleave>
277 <optional>
278 <ref name="db.area.role.attribute"/>
279 </optional>
280 <ref name="db.common.idreq.attributes"/>
281 <ref name="db.area.units.attribute"/>
282 <optional>
283 <choice>
284 <ref name="db.area.linkends.attribute"/>
285 <ref name="db.href.attributes"/>
286 </choice>
287 </optional>
288 <optional>
289 <ref name="db.area.label.attribute"/>
290 </optional>
291 <ref name="db.area.coords.attribute"/>
292 </interleave>
293 </define>
294 <define name="db.area">
295 <element name="area">
296 <ref name="db.area.attlist"/>
297 <optional>
298 <ref name="db.alt"/>
299 </optional>
300 </element>
301 </define>
302 </div>
303 <!-- ====================================================================== -->
304 <div>
305 <db:refname>area</db:refname>
306 <db:refpurpose>A region defined for a callout in a graphic or code example</db:refpurpose>
307 <!-- The only difference is that xml:id is optional -->
308 <define name="db.area.inareaset.attlist">
309 <interleave>
310 <optional>
311 <ref name="db.area.role.attribute"/>
312 </optional>
313 <ref name="db.common.attributes"/>
314 <ref name="db.area.units.attribute"/>
315 <optional>
316 <choice>
317 <ref name="db.area.linkends.attribute"/>
318 <ref name="db.href.attributes"/>
319 </choice>
320 </optional>
321 <optional>
322 <ref name="db.area.label.attribute"/>
323 </optional>
324 <ref name="db.area.coords.attribute"/>
325 </interleave>
326 </define>
327 <define name="db.area.inareaset">
328 <element name="area">
329 <ref name="db.area.inareaset.attlist"/>
330 <optional>
331 <ref name="db.alt"/>
332 </optional>
333 </element>
334 </define>
335 </div>
336 <!-- ====================================================================== -->
337 <div>
338 <db:refname>areaset</db:refname>
339 <db:refpurpose>A set of related areas in a graphic or code example</db:refpurpose>
340 <define name="db.areaset.role.attribute">
341 <attribute name="role"/>
342 </define>
343 <define name="db.areaset.linkends.attribute">
344 <ref name="db.linkends.attribute"/>
345 </define>
346 <define name="db.areaset.label.attribute">
347 <ref name="db.label.attribute"/>
348 </define>
349 <define name="db.areaset.attlist">
350 <interleave>
351 <optional>
352 <ref name="db.areaset.role.attribute"/>
353 </optional>
354 <ref name="db.common.idreq.attributes"/>
355 <ref name="db.area.units.attribute"/>
356 <optional>
357 <choice>
358 <ref name="db.areaset.linkends.attribute"/>
359 <ref name="db.href.attributes"/>
360 </choice>
361 </optional>
362 <optional>
363 <ref name="db.areaset.label.attribute"/>
364 </optional>
365 </interleave>
366 </define>
367 <define name="db.areaset">
368 <element name="areaset">
369 <ref name="db.areaset.attlist"/>
370 <oneOrMore>
371 <ref name="db.area.inareaset"/>
372 </oneOrMore>
373 </element>
374 </define>
375 </div>
376 <!-- ====================================================================== -->
377 <div>
378 <db:refname>screenco</db:refname>
379 <db:refpurpose>A screen with associated areas used in callouts</db:refpurpose>
380 <define name="db.screenco.role.attribute">
381 <attribute name="role"/>
382 </define>
383 <define name="db.screenco.attlist">
384 <interleave>
385 <optional>
386 <ref name="db.screenco.role.attribute"/>
387 </optional>
388 <ref name="db.common.attributes"/>
389 <ref name="db.common.linking.attributes"/>
390 </interleave>
391 </define>
392 <define name="db.screenco.info">
393 <ref name="db._info.title.forbidden"/>
394 </define>
395 <define name="db.screenco">
396 <element name="screenco">
397 <ref name="db.screenco.attlist"/>
398 <ref name="db.screenco.info"/>
399 <ref name="db.areaspec"/>
400 <ref name="db.screen"/>
401 <zeroOrMore>
402 <ref name="db.calloutlist"/>
403 </zeroOrMore>
404 </element>
405 </define>
406 </div>
407 <!-- ====================================================================== -->
408 <div>
409 <db:refname>imageobjectco</db:refname>
410 <db:refpurpose>A wrapper for an image object with callouts</db:refpurpose>
411 <define name="db.imageobjectco.role.attribute">
412 <attribute name="role"/>
413 </define>
414 <define name="db.imageobjectco.attlist">
415 <interleave>
416 <optional>
417 <ref name="db.imageobjectco.role.attribute"/>
418 </optional>
419 <ref name="db.common.attributes"/>
420 <ref name="db.common.linking.attributes"/>
421 </interleave>
422 </define>
423 <define name="db.imageobjectco.info">
424 <ref name="db._info.title.forbidden"/>
425 </define>
426 <define name="db.imageobjectco">
427 <element name="imageobjectco">
428 <ref name="db.imageobjectco.attlist"/>
429 <ref name="db.imageobjectco.info"/>
430 <ref name="db.areaspec"/>
431 <oneOrMore>
432 <ref name="db.imageobject"/>
433 </oneOrMore>
434 <zeroOrMore>
435 <ref name="db.calloutlist"/>
436 </zeroOrMore>
437 </element>
438 </define>
439 </div>
440 <!-- ====================================================================== -->
441 <div>
442 <db:refname>co</db:refname>
443 <db:refpurpose>The location of a callout embedded in text</db:refpurpose>
444 <define name="db.co.role.attribute">
445 <attribute name="role"/>
446 </define>
447 <define name="db.co.linkends.attribute">
448 <ref name="db.linkends.attribute"/>
449 </define>
450 <define name="db.co.label.attribute">
451 <ref name="db.label.attribute"/>
452 </define>
453 <define name="db.co.attlist">
454 <interleave>
455 <optional>
456 <ref name="db.co.role.attribute"/>
457 </optional>
458 <ref name="db.common.idreq.attributes"/>
459 <optional>
460 <ref name="db.co.linkends.attribute"/>
461 </optional>
462 <optional>
463 <ref name="db.co.label.attribute"/>
464 </optional>
465 </interleave>
466 </define>
467 <define name="db.co">
468 <element name="co">
469 <ref name="db.co.attlist"/>
470 <empty/>
471 </element>
472 </define>
473 </div>
474 <!-- ====================================================================== -->
475 <div>
476 <db:refname>coref</db:refname>
477 <db:refpurpose>A cross reference to a co</db:refpurpose>
478 <define name="db.coref.role.attribute">
479 <attribute name="role"/>
480 </define>
481 <define name="db.coref.label.attribute">
482 <ref name="db.label.attribute"/>
483 </define>
484 <define name="db.coref.attlist">
485 <interleave>
486 <optional>
487 <ref name="db.coref.role.attribute"/>
488 </optional>
489 <ref name="db.common.attributes"/>
490 <ref name="db.linkend.attribute"/>
491 <optional>
492 <ref name="db.coref.label.attribute"/>
493 </optional>
494 </interleave>
495 </define>
496 <define name="db.coref">
497 <element name="coref">
498 <ref name="db.coref.attlist"/>
499 <empty/>
500 </element>
501 </define>
502 </div>
503</grammar>
Note: See TracBrowser for help on using the repository browser.