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: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 | <define name="db.domain.inlines" combine="choice">
|
---|
34 | <ref name="db.gui.inlines"/>
|
---|
35 | </define>
|
---|
36 | <define name="db.userinput.inlines" combine="choice">
|
---|
37 | <ref name="db.gui.inlines"/>
|
---|
38 | </define>
|
---|
39 | <define name="db.keycombination.contentmodel" combine="choice">
|
---|
40 | <ref name="db.mousebutton"/>
|
---|
41 | </define>
|
---|
42 | <define name="db.gui.inlines">
|
---|
43 | <choice>
|
---|
44 | <ref name="db.guiicon"/>
|
---|
45 | <ref name="db.guibutton"/>
|
---|
46 | <ref name="db.guimenuitem"/>
|
---|
47 | <ref name="db.guimenu"/>
|
---|
48 | <ref name="db.guisubmenu"/>
|
---|
49 | <ref name="db.guilabel"/>
|
---|
50 | <ref name="db.menuchoice"/>
|
---|
51 | <ref name="db.mousebutton"/>
|
---|
52 | </choice>
|
---|
53 | </define>
|
---|
54 | <!-- ====================================================================== -->
|
---|
55 | <div>
|
---|
56 | <db:refname>guibutton</db:refname>
|
---|
57 | <db:refpurpose>The text on a button in a GUI</db:refpurpose>
|
---|
58 | <define name="db.guibutton.role.attribute">
|
---|
59 | <attribute name="role"/>
|
---|
60 | </define>
|
---|
61 | <define name="db.guibutton.attlist">
|
---|
62 | <interleave>
|
---|
63 | <optional>
|
---|
64 | <ref name="db.guibutton.role.attribute"/>
|
---|
65 | </optional>
|
---|
66 | <ref name="db.common.attributes"/>
|
---|
67 | <ref name="db.common.linking.attributes"/>
|
---|
68 | </interleave>
|
---|
69 | </define>
|
---|
70 | <define name="db.guibutton">
|
---|
71 | <element name="guibutton">
|
---|
72 | <ref name="db.guibutton.attlist"/>
|
---|
73 | <zeroOrMore>
|
---|
74 | <choice>
|
---|
75 | <ref name="db._text"/>
|
---|
76 | <ref name="db.accel"/>
|
---|
77 | <ref name="db.superscript"/>
|
---|
78 | <ref name="db.subscript"/>
|
---|
79 | </choice>
|
---|
80 | </zeroOrMore>
|
---|
81 | </element>
|
---|
82 | </define>
|
---|
83 | </div>
|
---|
84 | <!-- ====================================================================== -->
|
---|
85 | <div>
|
---|
86 | <db:refname>guiicon</db:refname>
|
---|
87 | <db:refpurpose>Graphic and/or text appearing as a icon in a GUI</db:refpurpose>
|
---|
88 | <define name="db.guiicon.role.attribute">
|
---|
89 | <attribute name="role"/>
|
---|
90 | </define>
|
---|
91 | <define name="db.guiicon.attlist">
|
---|
92 | <interleave>
|
---|
93 | <optional>
|
---|
94 | <ref name="db.guiicon.role.attribute"/>
|
---|
95 | </optional>
|
---|
96 | <ref name="db.common.attributes"/>
|
---|
97 | <ref name="db.common.linking.attributes"/>
|
---|
98 | </interleave>
|
---|
99 | </define>
|
---|
100 | <define name="db.guiicon">
|
---|
101 | <element name="guiicon">
|
---|
102 | <ref name="db.guiicon.attlist"/>
|
---|
103 | <zeroOrMore>
|
---|
104 | <choice>
|
---|
105 | <ref name="db._text"/>
|
---|
106 | <ref name="db.accel"/>
|
---|
107 | <ref name="db.superscript"/>
|
---|
108 | <ref name="db.subscript"/>
|
---|
109 | </choice>
|
---|
110 | </zeroOrMore>
|
---|
111 | </element>
|
---|
112 | </define>
|
---|
113 | </div>
|
---|
114 | <!-- ====================================================================== -->
|
---|
115 | <div>
|
---|
116 | <db:refname>guilabel</db:refname>
|
---|
117 | <db:refpurpose>The text of a label in a GUI</db:refpurpose>
|
---|
118 | <define name="db.guilabel.role.attribute">
|
---|
119 | <attribute name="role"/>
|
---|
120 | </define>
|
---|
121 | <define name="db.guilabel.attlist">
|
---|
122 | <interleave>
|
---|
123 | <optional>
|
---|
124 | <ref name="db.guilabel.role.attribute"/>
|
---|
125 | </optional>
|
---|
126 | <ref name="db.common.attributes"/>
|
---|
127 | <ref name="db.common.linking.attributes"/>
|
---|
128 | </interleave>
|
---|
129 | </define>
|
---|
130 | <define name="db.guilabel">
|
---|
131 | <element name="guilabel">
|
---|
132 | <ref name="db.guilabel.attlist"/>
|
---|
133 | <zeroOrMore>
|
---|
134 | <choice>
|
---|
135 | <ref name="db._text"/>
|
---|
136 | <ref name="db.accel"/>
|
---|
137 | <ref name="db.superscript"/>
|
---|
138 | <ref name="db.subscript"/>
|
---|
139 | </choice>
|
---|
140 | </zeroOrMore>
|
---|
141 | </element>
|
---|
142 | </define>
|
---|
143 | </div>
|
---|
144 | <!-- ====================================================================== -->
|
---|
145 | <div>
|
---|
146 | <db:refname>guimenu</db:refname>
|
---|
147 | <db:refpurpose>The name of a menu in a GUI</db:refpurpose>
|
---|
148 | <define name="db.guimenu.role.attribute">
|
---|
149 | <attribute name="role"/>
|
---|
150 | </define>
|
---|
151 | <define name="db.guimenu.attlist">
|
---|
152 | <interleave>
|
---|
153 | <optional>
|
---|
154 | <ref name="db.guimenu.role.attribute"/>
|
---|
155 | </optional>
|
---|
156 | <ref name="db.common.attributes"/>
|
---|
157 | <ref name="db.common.linking.attributes"/>
|
---|
158 | </interleave>
|
---|
159 | </define>
|
---|
160 | <define name="db.guimenu">
|
---|
161 | <element name="guimenu">
|
---|
162 | <ref name="db.guimenu.attlist"/>
|
---|
163 | <zeroOrMore>
|
---|
164 | <choice>
|
---|
165 | <ref name="db._text"/>
|
---|
166 | <ref name="db.accel"/>
|
---|
167 | <ref name="db.superscript"/>
|
---|
168 | <ref name="db.subscript"/>
|
---|
169 | </choice>
|
---|
170 | </zeroOrMore>
|
---|
171 | </element>
|
---|
172 | </define>
|
---|
173 | </div>
|
---|
174 | <!-- ====================================================================== -->
|
---|
175 | <div>
|
---|
176 | <db:refname>guimenuitem</db:refname>
|
---|
177 | <db:refpurpose>The name of a terminal menu item in a GUI</db:refpurpose>
|
---|
178 | <define name="db.guimenuitem.role.attribute">
|
---|
179 | <attribute name="role"/>
|
---|
180 | </define>
|
---|
181 | <define name="db.guimenuitem.attlist">
|
---|
182 | <interleave>
|
---|
183 | <optional>
|
---|
184 | <ref name="db.guimenuitem.role.attribute"/>
|
---|
185 | </optional>
|
---|
186 | <ref name="db.common.attributes"/>
|
---|
187 | <ref name="db.common.linking.attributes"/>
|
---|
188 | </interleave>
|
---|
189 | </define>
|
---|
190 | <define name="db.guimenuitem">
|
---|
191 | <element name="guimenuitem">
|
---|
192 | <ref name="db.guimenuitem.attlist"/>
|
---|
193 | <zeroOrMore>
|
---|
194 | <choice>
|
---|
195 | <ref name="db._text"/>
|
---|
196 | <ref name="db.accel"/>
|
---|
197 | <ref name="db.superscript"/>
|
---|
198 | <ref name="db.subscript"/>
|
---|
199 | </choice>
|
---|
200 | </zeroOrMore>
|
---|
201 | </element>
|
---|
202 | </define>
|
---|
203 | </div>
|
---|
204 | <!-- ====================================================================== -->
|
---|
205 | <div>
|
---|
206 | <db:refname>guisubmenu</db:refname>
|
---|
207 | <db:refpurpose>The name of a submenu in a GUI</db:refpurpose>
|
---|
208 | <define name="db.guisubmenu.role.attribute">
|
---|
209 | <attribute name="role"/>
|
---|
210 | </define>
|
---|
211 | <define name="db.guisubmenu.attlist">
|
---|
212 | <interleave>
|
---|
213 | <optional>
|
---|
214 | <ref name="db.guisubmenu.role.attribute"/>
|
---|
215 | </optional>
|
---|
216 | <ref name="db.common.attributes"/>
|
---|
217 | <ref name="db.common.linking.attributes"/>
|
---|
218 | </interleave>
|
---|
219 | </define>
|
---|
220 | <define name="db.guisubmenu">
|
---|
221 | <element name="guisubmenu">
|
---|
222 | <ref name="db.guisubmenu.attlist"/>
|
---|
223 | <zeroOrMore>
|
---|
224 | <choice>
|
---|
225 | <ref name="db._text"/>
|
---|
226 | <ref name="db.accel"/>
|
---|
227 | <ref name="db.superscript"/>
|
---|
228 | <ref name="db.subscript"/>
|
---|
229 | </choice>
|
---|
230 | </zeroOrMore>
|
---|
231 | </element>
|
---|
232 | </define>
|
---|
233 | </div>
|
---|
234 | <!-- ====================================================================== -->
|
---|
235 | <div>
|
---|
236 | <db:refname>menuchoice</db:refname>
|
---|
237 | <db:refpurpose>A selection or series of selections from a menu</db:refpurpose>
|
---|
238 | <define name="db.menuchoice.role.attribute">
|
---|
239 | <attribute name="role"/>
|
---|
240 | </define>
|
---|
241 | <define name="db.menuchoice.attlist">
|
---|
242 | <interleave>
|
---|
243 | <optional>
|
---|
244 | <ref name="db.menuchoice.role.attribute"/>
|
---|
245 | </optional>
|
---|
246 | <ref name="db.common.attributes"/>
|
---|
247 | <ref name="db.common.linking.attributes"/>
|
---|
248 | </interleave>
|
---|
249 | </define>
|
---|
250 | <define name="db.menuchoice">
|
---|
251 | <element name="menuchoice">
|
---|
252 | <ref name="db.menuchoice.attlist"/>
|
---|
253 | <optional>
|
---|
254 | <ref name="db.shortcut"/>
|
---|
255 | </optional>
|
---|
256 | <oneOrMore>
|
---|
257 | <choice>
|
---|
258 | <ref name="db.guibutton"/>
|
---|
259 | <ref name="db.guiicon"/>
|
---|
260 | <ref name="db.guilabel"/>
|
---|
261 | <ref name="db.guimenu"/>
|
---|
262 | <ref name="db.guimenuitem"/>
|
---|
263 | <ref name="db.guisubmenu"/>
|
---|
264 | </choice>
|
---|
265 | </oneOrMore>
|
---|
266 | </element>
|
---|
267 | </define>
|
---|
268 | </div>
|
---|
269 | <!-- ====================================================================== -->
|
---|
270 | <div>
|
---|
271 | <db:refname>mousebutton</db:refname>
|
---|
272 | <db:refpurpose>The conventional name of a mouse button</db:refpurpose>
|
---|
273 | <define name="db.mousebutton.role.attribute">
|
---|
274 | <attribute name="role"/>
|
---|
275 | </define>
|
---|
276 | <define name="db.mousebutton.attlist">
|
---|
277 | <interleave>
|
---|
278 | <optional>
|
---|
279 | <ref name="db.mousebutton.role.attribute"/>
|
---|
280 | </optional>
|
---|
281 | <ref name="db.common.attributes"/>
|
---|
282 | <ref name="db.common.linking.attributes"/>
|
---|
283 | </interleave>
|
---|
284 | </define>
|
---|
285 | <define name="db.mousebutton">
|
---|
286 | <element name="mousebutton">
|
---|
287 | <ref name="db.mousebutton.attlist"/>
|
---|
288 | <ref name="db._text"/>
|
---|
289 | </element>
|
---|
290 | </define>
|
---|
291 | </div>
|
---|
292 | </grammar>
|
---|