source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/schema/relaxng/hier.rng@ 2971a56

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 2971a56 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: 22.9 KB
Line 
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: hier.rnc 8994 2011-04-19 20:07:33Z 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:dbx="http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" xmlns="http://relaxng.org/ns/structure/1.0">
33 <start combine="choice">
34 <choice>
35 <ref name="db.partintro"/>
36 <ref name="db.simplesect"/>
37 </choice>
38 </start>
39 <define name="db.status.attribute">
40 <attribute name="status">
41 <db:refpurpose>Identifies the editorial or publication status of the element on which it occurs</db:refpurpose>
42 </attribute>
43 </define>
44 <!-- ====================================================================== -->
45 <define name="db.toplevel.sections">
46 <choice>
47 <group>
48 <oneOrMore>
49 <ref name="db.section"/>
50 </oneOrMore>
51 <zeroOrMore>
52 <ref name="db.simplesect"/>
53 </zeroOrMore>
54 </group>
55 <oneOrMore>
56 <ref name="db.simplesect"/>
57 </oneOrMore>
58 </choice>
59 </define>
60 <define name="db.toplevel.blocks.or.sections">
61 <choice>
62 <group>
63 <oneOrMore>
64 <ref name="db.all.blocks"/>
65 </oneOrMore>
66 <optional>
67 <ref name="db.toplevel.sections"/>
68 </optional>
69 </group>
70 <ref name="db.toplevel.sections"/>
71 </choice>
72 </define>
73 <define name="db.recursive.sections">
74 <choice>
75 <group>
76 <oneOrMore>
77 <ref name="db.section"/>
78 </oneOrMore>
79 <zeroOrMore>
80 <ref name="db.simplesect"/>
81 </zeroOrMore>
82 </group>
83 <oneOrMore>
84 <ref name="db.simplesect"/>
85 </oneOrMore>
86 </choice>
87 </define>
88 <define name="db.recursive.blocks.or.sections">
89 <choice>
90 <group>
91 <oneOrMore>
92 <ref name="db.all.blocks"/>
93 </oneOrMore>
94 <optional>
95 <ref name="db.recursive.sections"/>
96 </optional>
97 </group>
98 <ref name="db.recursive.sections"/>
99 </choice>
100 </define>
101 <!-- ====================================================================== -->
102 <define name="db.divisions">
103 <ref name="db.part"/>
104 </define>
105 <define name="db.components">
106 <choice>
107 <ref name="db.dedication"/>
108 <ref name="db.acknowledgements"/>
109 <ref name="db.preface"/>
110 <ref name="db.chapter"/>
111 <ref name="db.appendix"/>
112 <ref name="db.article"/>
113 <ref name="db.colophon"/>
114 </choice>
115 </define>
116 <define name="db.navigation.components">
117 <notAllowed/>
118 </define>
119 <define name="db.component.contentmodel">
120 <zeroOrMore>
121 <ref name="db.navigation.components"/>
122 </zeroOrMore>
123 <ref name="db.toplevel.blocks.or.sections"/>
124 <zeroOrMore>
125 <ref name="db.navigation.components"/>
126 </zeroOrMore>
127 </define>
128 <!-- ====================================================================== -->
129 <define name="db.setindex.components">
130 <notAllowed/>
131 </define>
132 <define name="db.toc.components">
133 <notAllowed/>
134 </define>
135 <define name="db.set.components">
136 <choice>
137 <ref name="db.set"/>
138 <ref name="db.book"/>
139 </choice>
140 </define>
141 <!-- ====================================================================== -->
142 <div>
143 <db:refname>set</db:refname>
144 <db:refpurpose>A collection of books</db:refpurpose>
145 <define name="db.set.status.attribute">
146 <ref name="db.status.attribute"/>
147 </define>
148 <define name="db.set.role.attribute">
149 <attribute name="role"/>
150 </define>
151 <define name="db.set.attlist">
152 <interleave>
153 <optional>
154 <ref name="db.set.role.attribute"/>
155 </optional>
156 <ref name="db.common.attributes"/>
157 <ref name="db.common.linking.attributes"/>
158 <optional>
159 <ref name="db.label.attribute"/>
160 </optional>
161 <optional>
162 <ref name="db.set.status.attribute"/>
163 </optional>
164 </interleave>
165 </define>
166 <define name="db.set.info">
167 <ref name="db._info.title.req"/>
168 </define>
169 <define name="db.set">
170 <element name="set">
171 <ref name="db.set.attlist"/>
172 <ref name="db.set.info"/>
173 <optional>
174 <ref name="db.toc.components"/>
175 </optional>
176 <oneOrMore>
177 <ref name="db.set.components"/>
178 </oneOrMore>
179 <optional>
180 <ref name="db.setindex.components"/>
181 </optional>
182 </element>
183 </define>
184 </div>
185 <!-- ====================================================================== -->
186 <define name="db.book.components">
187 <zeroOrMore>
188 <choice>
189 <ref name="db.navigation.components"/>
190 <ref name="db.components"/>
191 <ref name="db.divisions"/>
192 </choice>
193 </zeroOrMore>
194 </define>
195 <!-- ====================================================================== -->
196 <div>
197 <db:refname>book</db:refname>
198 <db:refpurpose>A book</db:refpurpose>
199 <define name="db.book.status.attribute">
200 <ref name="db.status.attribute"/>
201 </define>
202 <define name="db.book.role.attribute">
203 <attribute name="role"/>
204 </define>
205 <define name="db.book.attlist">
206 <interleave>
207 <optional>
208 <ref name="db.book.role.attribute"/>
209 </optional>
210 <ref name="db.common.attributes"/>
211 <ref name="db.common.linking.attributes"/>
212 <optional>
213 <ref name="db.label.attribute"/>
214 </optional>
215 <optional>
216 <ref name="db.book.status.attribute"/>
217 </optional>
218 </interleave>
219 </define>
220 <define name="db.book.info">
221 <ref name="db._info"/>
222 </define>
223 <define name="db.book">
224 <element name="book">
225 <ref name="db.book.attlist"/>
226 <ref name="db.book.info"/>
227 <ref name="db.book.components"/>
228 </element>
229 </define>
230 </div>
231 <!-- ====================================================================== -->
232 <div>
233 <db:refname>dedication</db:refname>
234 <db:refpurpose>The dedication of a book or other component</db:refpurpose>
235 <define name="db.dedication.status.attribute">
236 <ref name="db.status.attribute"/>
237 </define>
238 <define name="db.dedication.role.attribute">
239 <attribute name="role"/>
240 </define>
241 <define name="db.dedication.attlist">
242 <interleave>
243 <optional>
244 <ref name="db.dedication.role.attribute"/>
245 </optional>
246 <ref name="db.common.attributes"/>
247 <ref name="db.common.linking.attributes"/>
248 <optional>
249 <ref name="db.label.attribute"/>
250 </optional>
251 <optional>
252 <ref name="db.dedication.status.attribute"/>
253 </optional>
254 </interleave>
255 </define>
256 <define name="db.dedication.info">
257 <ref name="db._info"/>
258 </define>
259 <define name="db.dedication">
260 <element name="dedication">
261 <ref name="db.dedication.attlist"/>
262 <ref name="db.dedication.info"/>
263 <oneOrMore>
264 <ref name="db.all.blocks"/>
265 </oneOrMore>
266 </element>
267 </define>
268 </div>
269 <!-- ====================================================================== -->
270 <div>
271 <db:refname>acknowledgements</db:refname>
272 <db:refpurpose>Acknowledgements of a book or other component</db:refpurpose>
273 <define name="db.acknowledgements.status.attribute">
274 <ref name="db.status.attribute"/>
275 </define>
276 <define name="db.acknowledgements.role.attribute">
277 <attribute name="role"/>
278 </define>
279 <define name="db.acknowledgements.attlist">
280 <interleave>
281 <optional>
282 <ref name="db.acknowledgements.role.attribute"/>
283 </optional>
284 <ref name="db.common.attributes"/>
285 <ref name="db.common.linking.attributes"/>
286 <optional>
287 <ref name="db.label.attribute"/>
288 </optional>
289 <optional>
290 <ref name="db.acknowledgements.status.attribute"/>
291 </optional>
292 </interleave>
293 </define>
294 <define name="db.acknowledgements.info">
295 <ref name="db._info"/>
296 </define>
297 <define name="db.acknowledgements">
298 <element name="acknowledgements">
299 <ref name="db.acknowledgements.attlist"/>
300 <ref name="db.acknowledgements.info"/>
301 <oneOrMore>
302 <ref name="db.all.blocks"/>
303 </oneOrMore>
304 </element>
305 </define>
306 </div>
307 <!-- ====================================================================== -->
308 <div>
309 <db:refname>colophon</db:refname>
310 <db:refpurpose>Text at the back of a book describing facts about its production</db:refpurpose>
311 <define name="db.colophon.status.attribute">
312 <ref name="db.status.attribute"/>
313 </define>
314 <define name="db.colophon.role.attribute">
315 <attribute name="role"/>
316 </define>
317 <define name="db.colophon.attlist">
318 <interleave>
319 <optional>
320 <ref name="db.colophon.role.attribute"/>
321 </optional>
322 <ref name="db.common.attributes"/>
323 <ref name="db.common.linking.attributes"/>
324 <optional>
325 <ref name="db.label.attribute"/>
326 </optional>
327 <optional>
328 <ref name="db.colophon.status.attribute"/>
329 </optional>
330 </interleave>
331 </define>
332 <define name="db.colophon.info">
333 <ref name="db._info"/>
334 </define>
335 <define name="db.colophon">
336 <element name="colophon">
337 <ref name="db.colophon.attlist"/>
338 <ref name="db.colophon.info"/>
339 <choice>
340 <group>
341 <oneOrMore>
342 <ref name="db.all.blocks"/>
343 </oneOrMore>
344 <zeroOrMore>
345 <ref name="db.simplesect"/>
346 </zeroOrMore>
347 </group>
348 <group>
349 <zeroOrMore>
350 <ref name="db.all.blocks"/>
351 </zeroOrMore>
352 <oneOrMore>
353 <ref name="db.simplesect"/>
354 </oneOrMore>
355 </group>
356 </choice>
357 </element>
358 </define>
359 </div>
360 <!-- ====================================================================== -->
361 <define name="db.appendix.contentmodel">
362 <ref name="db.component.contentmodel"/>
363 </define>
364 <!-- ====================================================================== -->
365 <div>
366 <db:refname>appendix</db:refname>
367 <db:refpurpose>An appendix in a book or article</db:refpurpose>
368 <define name="db.appendix.status.attribute">
369 <ref name="db.status.attribute"/>
370 </define>
371 <define name="db.appendix.role.attribute">
372 <attribute name="role"/>
373 </define>
374 <define name="db.appendix.attlist">
375 <interleave>
376 <optional>
377 <ref name="db.appendix.role.attribute"/>
378 </optional>
379 <ref name="db.common.attributes"/>
380 <ref name="db.common.linking.attributes"/>
381 <optional>
382 <ref name="db.label.attribute"/>
383 </optional>
384 <optional>
385 <ref name="db.appendix.status.attribute"/>
386 </optional>
387 </interleave>
388 </define>
389 <define name="db.appendix.info">
390 <ref name="db._info.title.req"/>
391 </define>
392 <define name="db.appendix">
393 <element name="appendix">
394 <ref name="db.appendix.attlist"/>
395 <ref name="db.appendix.info"/>
396 <ref name="db.appendix.contentmodel"/>
397 </element>
398 </define>
399 </div>
400 <!-- ====================================================================== -->
401 <define name="db.chapter.contentmodel">
402 <ref name="db.component.contentmodel"/>
403 </define>
404 <!-- ====================================================================== -->
405 <div>
406 <db:refname>chapter</db:refname>
407 <db:refpurpose>A chapter, as of a book</db:refpurpose>
408 <define name="db.chapter.status.attribute">
409 <ref name="db.status.attribute"/>
410 </define>
411 <define name="db.chapter.role.attribute">
412 <attribute name="role"/>
413 </define>
414 <define name="db.chapter.attlist">
415 <interleave>
416 <optional>
417 <ref name="db.chapter.role.attribute"/>
418 </optional>
419 <ref name="db.common.attributes"/>
420 <ref name="db.common.linking.attributes"/>
421 <optional>
422 <ref name="db.label.attribute"/>
423 </optional>
424 <optional>
425 <ref name="db.chapter.status.attribute"/>
426 </optional>
427 </interleave>
428 </define>
429 <define name="db.chapter.info">
430 <ref name="db._info.title.req"/>
431 </define>
432 <define name="db.chapter">
433 <element name="chapter">
434 <ref name="db.chapter.attlist"/>
435 <ref name="db.chapter.info"/>
436 <ref name="db.chapter.contentmodel"/>
437 </element>
438 </define>
439 </div>
440 <!-- ====================================================================== -->
441 <define name="db.part.components">
442 <choice>
443 <ref name="db.navigation.components"/>
444 <ref name="db.components"/>
445 </choice>
446 </define>
447 <define name="db.part.contentmodel">
448 <oneOrMore>
449 <ref name="db.part.components"/>
450 </oneOrMore>
451 </define>
452 <!-- ====================================================================== -->
453 <div>
454 <db:refname>part</db:refname>
455 <db:refpurpose>A division in a book</db:refpurpose>
456 <define name="db.part.status.attribute">
457 <ref name="db.status.attribute"/>
458 </define>
459 <define name="db.part.role.attribute">
460 <attribute name="role"/>
461 </define>
462 <define name="db.part.attlist">
463 <interleave>
464 <optional>
465 <ref name="db.part.role.attribute"/>
466 </optional>
467 <ref name="db.common.attributes"/>
468 <ref name="db.common.linking.attributes"/>
469 <optional>
470 <ref name="db.label.attribute"/>
471 </optional>
472 <optional>
473 <ref name="db.part.status.attribute"/>
474 </optional>
475 </interleave>
476 </define>
477 <define name="db.part.info">
478 <ref name="db._info.title.req"/>
479 </define>
480 <define name="db.part">
481 <element name="part">
482 <ref name="db.part.attlist"/>
483 <ref name="db.part.info"/>
484 <optional>
485 <ref name="db.partintro"/>
486 </optional>
487 <ref name="db.part.contentmodel"/>
488 </element>
489 </define>
490 </div>
491 <!-- ====================================================================== -->
492 <div>
493 <db:refname>preface</db:refname>
494 <db:refpurpose>Introductory matter preceding the first chapter of a book</db:refpurpose>
495 <define name="db.preface.status.attribute">
496 <ref name="db.status.attribute"/>
497 </define>
498 <define name="db.preface.role.attribute">
499 <attribute name="role"/>
500 </define>
501 <define name="db.preface.attlist">
502 <interleave>
503 <optional>
504 <ref name="db.preface.role.attribute"/>
505 </optional>
506 <ref name="db.common.attributes"/>
507 <ref name="db.common.linking.attributes"/>
508 <optional>
509 <ref name="db.label.attribute"/>
510 </optional>
511 <optional>
512 <ref name="db.preface.status.attribute"/>
513 </optional>
514 </interleave>
515 </define>
516 <define name="db.preface.info">
517 <ref name="db._info.title.req"/>
518 </define>
519 <define name="db.preface">
520 <element name="preface">
521 <ref name="db.preface.attlist"/>
522 <ref name="db.preface.info"/>
523 <ref name="db.component.contentmodel"/>
524 </element>
525 </define>
526 </div>
527 <!-- ====================================================================== -->
528 <div>
529 <db:refname>partintro</db:refname>
530 <db:refpurpose>An introduction to the contents of a part</db:refpurpose>
531 <define name="db.partintro.status.attribute">
532 <ref name="db.status.attribute"/>
533 </define>
534 <define name="db.partintro.role.attribute">
535 <attribute name="role"/>
536 </define>
537 <define name="db.partintro.attlist">
538 <interleave>
539 <optional>
540 <ref name="db.partintro.role.attribute"/>
541 </optional>
542 <ref name="db.common.attributes"/>
543 <ref name="db.common.linking.attributes"/>
544 <optional>
545 <ref name="db.label.attribute"/>
546 </optional>
547 <optional>
548 <ref name="db.partintro.status.attribute"/>
549 </optional>
550 </interleave>
551 </define>
552 <define name="db.partintro.info">
553 <ref name="db._info"/>
554 </define>
555 <define name="db.partintro">
556 <element name="partintro">
557 <ref name="db.partintro.attlist"/>
558 <ref name="db.partintro.info"/>
559 <ref name="db.toplevel.blocks.or.sections"/>
560 </element>
561 </define>
562 </div>
563 <!-- ====================================================================== -->
564 <div>
565 <db:refname>section</db:refname>
566 <db:refpurpose>A recursive section</db:refpurpose>
567 <define name="db.section.status.attribute">
568 <ref name="db.status.attribute"/>
569 </define>
570 <define name="db.section.role.attribute">
571 <attribute name="role"/>
572 </define>
573 <define name="db.section.attlist">
574 <interleave>
575 <optional>
576 <ref name="db.section.role.attribute"/>
577 </optional>
578 <ref name="db.common.attributes"/>
579 <ref name="db.common.linking.attributes"/>
580 <optional>
581 <ref name="db.label.attribute"/>
582 </optional>
583 <optional>
584 <ref name="db.section.status.attribute"/>
585 </optional>
586 </interleave>
587 </define>
588 <define name="db.section.info">
589 <ref name="db._info.title.req"/>
590 </define>
591 <define name="db.section">
592 <element name="section">
593 <ref name="db.section.attlist"/>
594 <ref name="db.section.info"/>
595 <ref name="db.recursive.blocks.or.sections"/>
596 <zeroOrMore>
597 <ref name="db.navigation.components"/>
598 </zeroOrMore>
599 </element>
600 </define>
601 </div>
602 <!-- ====================================================================== -->
603 <div>
604 <db:refname>simplesect</db:refname>
605 <db:refpurpose>A section of a document with no subdivisions</db:refpurpose>
606 <define name="db.simplesect.status.attribute">
607 <ref name="db.status.attribute"/>
608 </define>
609 <define name="db.simplesect.role.attribute">
610 <attribute name="role"/>
611 </define>
612 <define name="db.simplesect.attlist">
613 <interleave>
614 <optional>
615 <ref name="db.simplesect.role.attribute"/>
616 </optional>
617 <ref name="db.common.attributes"/>
618 <ref name="db.common.linking.attributes"/>
619 <optional>
620 <ref name="db.label.attribute"/>
621 </optional>
622 <optional>
623 <ref name="db.simplesect.status.attribute"/>
624 </optional>
625 </interleave>
626 </define>
627 <define name="db.simplesect.info">
628 <ref name="db._info.title.req"/>
629 </define>
630 <define name="db.simplesect">
631 <element name="simplesect">
632 <ref name="db.simplesect.attlist"/>
633 <ref name="db.simplesect.info"/>
634 <oneOrMore>
635 <ref name="db.all.blocks"/>
636 </oneOrMore>
637 </element>
638 </define>
639 </div>
640 <!-- ====================================================================== -->
641 <define name="db.article.components">
642 <ref name="db.toplevel.sections"/>
643 </define>
644 <define name="db.article.navcomponents">
645 <choice>
646 <ref name="db.navigation.components"/>
647 <ref name="db.acknowledgements"/>
648 <ref name="db.dedication"/>
649 <ref name="db.appendix"/>
650 <ref name="db.colophon"/>
651 </choice>
652 </define>
653 <!-- ====================================================================== -->
654 <div>
655 <db:refname>article</db:refname>
656 <db:refpurpose>An article</db:refpurpose>
657 <define name="db.article.status.attribute">
658 <ref name="db.status.attribute"/>
659 </define>
660 <define name="db.article.class.enumeration">
661 <choice>
662 <value>faq</value>
663 <a:documentation>A collection of frequently asked questions.</a:documentation>
664 <value>journalarticle</value>
665 <a:documentation>An article in a journal or other periodical.</a:documentation>
666 <value>productsheet</value>
667 <a:documentation>A description of a product.</a:documentation>
668 <value>specification</value>
669 <a:documentation>A specification.</a:documentation>
670 <value>techreport</value>
671 <a:documentation>A technical report.</a:documentation>
672 <value>whitepaper</value>
673 <a:documentation>A white paper.</a:documentation>
674 </choice>
675 </define>
676 <define name="db.article.class.attribute">
677 <attribute name="class">
678 <db:refpurpose>Identifies the nature of the article</db:refpurpose>
679 <ref name="db.article.class.enumeration"/>
680 </attribute>
681 </define>
682 <define name="db.article.role.attribute">
683 <attribute name="role"/>
684 </define>
685 <define name="db.article.attlist">
686 <interleave>
687 <optional>
688 <ref name="db.article.role.attribute"/>
689 </optional>
690 <ref name="db.common.attributes"/>
691 <ref name="db.common.linking.attributes"/>
692 <optional>
693 <ref name="db.label.attribute"/>
694 </optional>
695 <optional>
696 <ref name="db.article.status.attribute"/>
697 </optional>
698 <optional>
699 <ref name="db.article.class.attribute"/>
700 </optional>
701 </interleave>
702 </define>
703 <define name="db.article.info">
704 <ref name="db._info.title.req"/>
705 </define>
706 <define name="db.article">
707 <element name="article">
708 <ref name="db.article.attlist"/>
709 <ref name="db.article.info"/>
710 <zeroOrMore>
711 <ref name="db.article.navcomponents"/>
712 </zeroOrMore>
713 <choice>
714 <group>
715 <oneOrMore>
716 <ref name="db.all.blocks"/>
717 </oneOrMore>
718 <optional>
719 <ref name="db.article.components"/>
720 </optional>
721 </group>
722 <ref name="db.article.components"/>
723 </choice>
724 <zeroOrMore>
725 <ref name="db.article.navcomponents"/>
726 </zeroOrMore>
727 </element>
728 </define>
729 </div>
730</grammar>
Note: See TracBrowser for help on using the repository browser.