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: refsect1.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: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.refsect1"/>
|
---|
36 | <ref name="db.refsect2"/>
|
---|
37 | <ref name="db.refsect3"/>
|
---|
38 | </choice>
|
---|
39 | </start>
|
---|
40 | <define name="db.toplevel.refsection" combine="choice">
|
---|
41 | <oneOrMore>
|
---|
42 | <ref name="db.refsect1"/>
|
---|
43 | </oneOrMore>
|
---|
44 | </define>
|
---|
45 | <define name="db.secondlevel.refsection" combine="choice">
|
---|
46 | <oneOrMore>
|
---|
47 | <ref name="db.refsect2"/>
|
---|
48 | </oneOrMore>
|
---|
49 | </define>
|
---|
50 | <!-- ====================================================================== -->
|
---|
51 | <define name="db.refsect1.sections">
|
---|
52 | <oneOrMore>
|
---|
53 | <ref name="db.refsect2"/>
|
---|
54 | </oneOrMore>
|
---|
55 | </define>
|
---|
56 | <div>
|
---|
57 | <db:refname>refsect1</db:refname>
|
---|
58 | <db:refpurpose>A major subsection of a reference entry</db:refpurpose>
|
---|
59 | <define name="db.refsect1.status.attribute">
|
---|
60 | <ref name="db.status.attribute"/>
|
---|
61 | </define>
|
---|
62 | <define name="db.refsect1.role.attribute">
|
---|
63 | <attribute name="role"/>
|
---|
64 | </define>
|
---|
65 | <define name="db.refsect1.attlist">
|
---|
66 | <interleave>
|
---|
67 | <optional>
|
---|
68 | <ref name="db.refsect1.role.attribute"/>
|
---|
69 | </optional>
|
---|
70 | <ref name="db.common.attributes"/>
|
---|
71 | <ref name="db.common.linking.attributes"/>
|
---|
72 | <optional>
|
---|
73 | <ref name="db.label.attribute"/>
|
---|
74 | </optional>
|
---|
75 | <optional>
|
---|
76 | <ref name="db.refsect1.status.attribute"/>
|
---|
77 | </optional>
|
---|
78 | </interleave>
|
---|
79 | </define>
|
---|
80 | <define name="db.refsect1.info">
|
---|
81 | <ref name="db._info.title.req"/>
|
---|
82 | </define>
|
---|
83 | <define name="db.refsect1">
|
---|
84 | <element name="refsect1">
|
---|
85 | <ref name="db.refsect1.attlist"/>
|
---|
86 | <ref name="db.refsect1.info"/>
|
---|
87 | <choice>
|
---|
88 | <group>
|
---|
89 | <oneOrMore>
|
---|
90 | <ref name="db.all.blocks"/>
|
---|
91 | </oneOrMore>
|
---|
92 | <optional>
|
---|
93 | <ref name="db.refsect1.sections"/>
|
---|
94 | </optional>
|
---|
95 | </group>
|
---|
96 | <ref name="db.refsect1.sections"/>
|
---|
97 | </choice>
|
---|
98 | </element>
|
---|
99 | </define>
|
---|
100 | </div>
|
---|
101 | <!-- ====================================================================== -->
|
---|
102 | <define name="db.refsect2.sections">
|
---|
103 | <oneOrMore>
|
---|
104 | <ref name="db.refsect3"/>
|
---|
105 | </oneOrMore>
|
---|
106 | </define>
|
---|
107 | <div>
|
---|
108 | <db:refname>refsect2</db:refname>
|
---|
109 | <db:refpurpose>A subsection of a <db:tag>refsect1</db:tag>
|
---|
110 | </db:refpurpose>
|
---|
111 | <define name="db.refsect2.status.attribute">
|
---|
112 | <ref name="db.status.attribute"/>
|
---|
113 | </define>
|
---|
114 | <define name="db.refsect2.role.attribute">
|
---|
115 | <attribute name="role"/>
|
---|
116 | </define>
|
---|
117 | <define name="db.refsect2.attlist">
|
---|
118 | <interleave>
|
---|
119 | <optional>
|
---|
120 | <ref name="db.refsect2.role.attribute"/>
|
---|
121 | </optional>
|
---|
122 | <ref name="db.common.attributes"/>
|
---|
123 | <ref name="db.common.linking.attributes"/>
|
---|
124 | <optional>
|
---|
125 | <ref name="db.label.attribute"/>
|
---|
126 | </optional>
|
---|
127 | <optional>
|
---|
128 | <ref name="db.refsect2.status.attribute"/>
|
---|
129 | </optional>
|
---|
130 | </interleave>
|
---|
131 | </define>
|
---|
132 | <define name="db.refsect2.info">
|
---|
133 | <ref name="db._info.title.req"/>
|
---|
134 | </define>
|
---|
135 | <define name="db.refsect2">
|
---|
136 | <element name="refsect2">
|
---|
137 | <ref name="db.refsect2.attlist"/>
|
---|
138 | <ref name="db.refsect2.info"/>
|
---|
139 | <choice>
|
---|
140 | <group>
|
---|
141 | <oneOrMore>
|
---|
142 | <ref name="db.all.blocks"/>
|
---|
143 | </oneOrMore>
|
---|
144 | <optional>
|
---|
145 | <ref name="db.refsect2.sections"/>
|
---|
146 | </optional>
|
---|
147 | </group>
|
---|
148 | <ref name="db.refsect2.sections"/>
|
---|
149 | </choice>
|
---|
150 | </element>
|
---|
151 | </define>
|
---|
152 | </div>
|
---|
153 | <!-- ====================================================================== -->
|
---|
154 | <div>
|
---|
155 | <db:refname>refsect3</db:refname>
|
---|
156 | <db:refpurpose>A subsection of a <db:tag>refsect2</db:tag>
|
---|
157 | </db:refpurpose>
|
---|
158 | <define name="db.refsect3.status.attribute">
|
---|
159 | <ref name="db.status.attribute"/>
|
---|
160 | </define>
|
---|
161 | <define name="db.refsect3.role.attribute">
|
---|
162 | <attribute name="role"/>
|
---|
163 | </define>
|
---|
164 | <define name="db.refsect3.attlist">
|
---|
165 | <interleave>
|
---|
166 | <optional>
|
---|
167 | <ref name="db.refsect3.role.attribute"/>
|
---|
168 | </optional>
|
---|
169 | <ref name="db.common.attributes"/>
|
---|
170 | <ref name="db.common.linking.attributes"/>
|
---|
171 | <optional>
|
---|
172 | <ref name="db.label.attribute"/>
|
---|
173 | </optional>
|
---|
174 | <optional>
|
---|
175 | <ref name="db.refsect3.status.attribute"/>
|
---|
176 | </optional>
|
---|
177 | </interleave>
|
---|
178 | </define>
|
---|
179 | <define name="db.refsect3.info">
|
---|
180 | <ref name="db._info.title.req"/>
|
---|
181 | </define>
|
---|
182 | <define name="db.refsect3">
|
---|
183 | <element name="refsect3">
|
---|
184 | <ref name="db.refsect3.attlist"/>
|
---|
185 | <ref name="db.refsect3.info"/>
|
---|
186 | <oneOrMore>
|
---|
187 | <ref name="db.all.blocks"/>
|
---|
188 | </oneOrMore>
|
---|
189 | </element>
|
---|
190 | </define>
|
---|
191 | </div>
|
---|
192 | </grammar>
|
---|