[b1a51ac1] | 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: toc.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="http://relaxng.org/ns/structure/1.0">
|
---|
| 33 | <start combine="choice">
|
---|
| 34 | <choice>
|
---|
| 35 | <ref name="db.toc"/>
|
---|
| 36 | <ref name="db.tocdiv"/>
|
---|
| 37 | </choice>
|
---|
| 38 | </start>
|
---|
| 39 | <define name="db.navigation.components" combine="choice">
|
---|
| 40 | <ref name="db.toc"/>
|
---|
| 41 | </define>
|
---|
| 42 | <define name="db.toc.components" combine="choice">
|
---|
| 43 | <ref name="db.toc"/>
|
---|
| 44 | </define>
|
---|
| 45 | <define name="db.toc.pagenum.attribute">
|
---|
| 46 | <attribute name="pagenum">
|
---|
| 47 | <db:refpurpose>Indicates the page on which this element occurs in some version of the printed document</db:refpurpose>
|
---|
| 48 | </attribute>
|
---|
| 49 | </define>
|
---|
| 50 | <!-- ====================================================================== -->
|
---|
| 51 | <div>
|
---|
| 52 | <db:refname>toc</db:refname>
|
---|
| 53 | <db:refpurpose>A table of contents</db:refpurpose>
|
---|
| 54 | <define name="db.toc.role.attribute">
|
---|
| 55 | <attribute name="role"/>
|
---|
| 56 | </define>
|
---|
| 57 | <define name="db.toc.attlist">
|
---|
| 58 | <interleave>
|
---|
| 59 | <optional>
|
---|
| 60 | <ref name="db.toc.role.attribute"/>
|
---|
| 61 | </optional>
|
---|
| 62 | <ref name="db.common.attributes"/>
|
---|
| 63 | <ref name="db.common.linking.attributes"/>
|
---|
| 64 | </interleave>
|
---|
| 65 | </define>
|
---|
| 66 | <define name="db.toc.info">
|
---|
| 67 | <ref name="db._info.title.only"/>
|
---|
| 68 | </define>
|
---|
| 69 | <define name="db.toc">
|
---|
| 70 | <element name="toc">
|
---|
| 71 | <ref name="db.toc.attlist"/>
|
---|
| 72 | <ref name="db.toc.info"/>
|
---|
| 73 | <zeroOrMore>
|
---|
| 74 | <ref name="db.all.blocks"/>
|
---|
| 75 | </zeroOrMore>
|
---|
| 76 | <zeroOrMore>
|
---|
| 77 | <choice>
|
---|
| 78 | <ref name="db.tocdiv"/>
|
---|
| 79 | <ref name="db.tocentry"/>
|
---|
| 80 | </choice>
|
---|
| 81 | </zeroOrMore>
|
---|
| 82 | </element>
|
---|
| 83 | </define>
|
---|
| 84 | </div>
|
---|
| 85 | <!-- ====================================================================== -->
|
---|
| 86 | <div>
|
---|
| 87 | <db:refname>tocdiv</db:refname>
|
---|
| 88 | <db:refpurpose>A division in a table of contents</db:refpurpose>
|
---|
| 89 | <define name="db.tocdiv.role.attribute">
|
---|
| 90 | <attribute name="role"/>
|
---|
| 91 | </define>
|
---|
| 92 | <define name="db.tocdiv.pagenum.attribute">
|
---|
| 93 | <ref name="db.toc.pagenum.attribute"/>
|
---|
| 94 | </define>
|
---|
| 95 | <define name="db.tocdiv.attlist">
|
---|
| 96 | <interleave>
|
---|
| 97 | <optional>
|
---|
| 98 | <ref name="db.tocdiv.role.attribute"/>
|
---|
| 99 | </optional>
|
---|
| 100 | <ref name="db.common.attributes"/>
|
---|
| 101 | <optional>
|
---|
| 102 | <ref name="db.tocdiv.pagenum.attribute"/>
|
---|
| 103 | </optional>
|
---|
| 104 | <optional>
|
---|
| 105 | <ref name="db.linkend.attribute"/>
|
---|
| 106 | </optional>
|
---|
| 107 | </interleave>
|
---|
| 108 | </define>
|
---|
| 109 | <define name="db.tocdiv.info">
|
---|
| 110 | <ref name="db._info"/>
|
---|
| 111 | </define>
|
---|
| 112 | <define name="db.tocdiv">
|
---|
| 113 | <element name="tocdiv">
|
---|
| 114 | <ref name="db.tocdiv.attlist"/>
|
---|
| 115 | <ref name="db.tocdiv.info"/>
|
---|
| 116 | <zeroOrMore>
|
---|
| 117 | <ref name="db.all.blocks"/>
|
---|
| 118 | </zeroOrMore>
|
---|
| 119 | <oneOrMore>
|
---|
| 120 | <choice>
|
---|
| 121 | <ref name="db.tocdiv"/>
|
---|
| 122 | <ref name="db.tocentry"/>
|
---|
| 123 | </choice>
|
---|
| 124 | </oneOrMore>
|
---|
| 125 | </element>
|
---|
| 126 | </define>
|
---|
| 127 | </div>
|
---|
| 128 | <!-- ====================================================================== -->
|
---|
| 129 | <div>
|
---|
| 130 | <db:refname>tocentry</db:refname>
|
---|
| 131 | <db:refpurpose>A component title in a table of contents</db:refpurpose>
|
---|
| 132 | <define name="db.tocentry.role.attribute">
|
---|
| 133 | <attribute name="role"/>
|
---|
| 134 | </define>
|
---|
| 135 | <define name="db.tocentry.pagenum.attribute">
|
---|
| 136 | <ref name="db.toc.pagenum.attribute"/>
|
---|
| 137 | </define>
|
---|
| 138 | <define name="db.tocentry.attlist">
|
---|
| 139 | <interleave>
|
---|
| 140 | <optional>
|
---|
| 141 | <ref name="db.tocentry.role.attribute"/>
|
---|
| 142 | </optional>
|
---|
| 143 | <ref name="db.common.attributes"/>
|
---|
| 144 | <optional>
|
---|
| 145 | <ref name="db.tocentry.pagenum.attribute"/>
|
---|
| 146 | </optional>
|
---|
| 147 | <optional>
|
---|
| 148 | <ref name="db.linkend.attribute"/>
|
---|
| 149 | </optional>
|
---|
| 150 | </interleave>
|
---|
| 151 | </define>
|
---|
| 152 | <define name="db.tocentry">
|
---|
| 153 | <element name="tocentry">
|
---|
| 154 | <ref name="db.tocentry.attlist"/>
|
---|
| 155 | <zeroOrMore>
|
---|
| 156 | <ref name="db.all.inlines"/>
|
---|
| 157 | </zeroOrMore>
|
---|
| 158 | </element>
|
---|
| 159 | </define>
|
---|
| 160 | </div>
|
---|
| 161 | </grammar>
|
---|