Debian Codegraph @

xslt/dita/common/dita-selectors.mod

raw
1 <!--
2 This program is free software; you can redistribute it and/or modify it under
3 the terms of the GNU Lesser General Public License as published by the Free
4 Software Foundation; either version 2 of the License, or (at your option) any
5 later version.
6
7 This program is distributed in the hope that it will be useful, but WITHOUT
8 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
10 details.
11
12 You should have received a copy of the GNU Lesser General Public License
13 along with this program; see the file COPYING.LGPL. If not, see <http://www.gnu.org/licenses/>.
14 -->
15
16 <!--
17 This file contains a set of selectors for DITA content. The selectors reflect
18 the level of granularity that is implemented by the yelp-xsl stylesheets, and
19 may not be suitable for other uses. The selectors match on element names as
20 well as class attributes, so they will work with or without DTDs (although
21 specializations not covered here of course require DTDs). The selectors are
22 all of the form *[predicate]. This allows axes to be prepended and predicates
23 to be appended. They are always named according to the domain of their most
24 base element and the local name of their most specialized element. They are
25 grouped according to their most base element.
26 -->
27
28 <!-- ===========================================================================
29 map/map
30 -->
31 <!ENTITY map_map "*[
32 name(.) = 'map' or name(.) = 'bookmap' or
33 contains(@class, ' map/map ')]">
34
35 <!-- ===========================================================================
36 map/topicmeta
37 -->
38 <!ENTITY map_topicmeta "*[name(.) = 'topicmeta' or contains(@class, ' map/topicmeta ')]">
39
40 <!-- ===========================================================================
41 map/topicref
42 -->
43 <!ENTITY map_topicref "*[
44 name(.) = 'topicref' or name(.) = 'chapter' or name(.) = 'part' or
45 contains(@class, ' map/topicref ')]">
46
47 <!-- ===========================================================================
48 topic/alt
49 -->
50 <!ENTITY topic_alt "*[name(.) = 'alt' or contains(@class, ' topic/alt ')]">
51
52 <!-- ===========================================================================
53 topic/author
54 -->
55 <!ENTITY topic_author "*[name(.) = 'author' or contains(@class, ' topic/author ')]">
56
57 <!-- ===========================================================================
58 topic/body
59 -->
60 <!ENTITY topic_body "*[
61 name(.) = 'body' or name(.) = 'conbody' or name(.) = 'refbody' or
62 name(.) = 'taskbody' or
63 contains(@class, ' topic/body ')
64 ]">
65 <!ENTITY topic_body_all "*[
66 name(.) = 'body' or name(.) = 'conbody' or name(.) = 'refbody' or
67 name(.) = 'taskbody' or
68 contains(@class, ' topic/body ')
69 ]">
70
71 <!-- ===========================================================================
72 topic/bodydiv
73 -->
74 <!ENTITY topic_bodydiv "*[
75 name(.) = 'bodydiv' or name(.) = 'conbodydiv' or name(.) = 'refbodydiv' or
76 contains(@class, ' topic/bodydiv ')
77 ]">
78 <!ENTITY topic_bodydiv_all "*[
79 name(.) = 'bodydiv' or name(.) = 'conbodydiv' or name(.) = 'refbodydiv' or
80 contains(@class, ' topic/bodydiv ')
81 ]">
82
83 <!-- ===========================================================================
84 topic/copyright
85 -->
86 <!ENTITY topic_copyright "*[name(.) = 'copyright' or contains(@class, ' topic/copyright ')]">
87
88 <!-- ===========================================================================
89 topic/copyrholder
90 -->
91 <!ENTITY topic_copyrholder "*[name(.) = 'copyrholder' or contains(@class, ' topic/copyrholder ')]">
92
93 <!-- ===========================================================================
94 topic/copyryear
95 -->
96 <!ENTITY topic_copyryear "*[name(.) = 'copyryear' or contains(@class, ' topic/copyryear ')]">
97
98 <!-- ===========================================================================
99 topic/desc
100 -->
101 <!ENTITY topic_desc "*[name(.) = 'desc' or contains(@class, ' topic/desc ')]">
102
103 <!-- ===========================================================================
104 topic/dd
105 -->
106 <!ENTITY topic_dd "*[
107 name(.) = 'dd' or name(.) = 'pd' or
108 contains(@class, ' topic/dd ')]">
109
110 <!-- ===========================================================================
111 topic/ddhd
112 -->
113 <!ENTITY topic_ddhd "*[name(.) = 'ddhd' or contains(@class, ' topic/ddhd ')]">
114
115 <!-- ===========================================================================
116 topic/dl
117 -->
118 <!ENTITY topic_dl "*[
119 name(.) = 'dl' or name(.) = 'parml' or
120 contains(@class, ' topic/dl ')]">
121
122 <!-- ===========================================================================
123 topic/dlentry
124 -->
125 <!ENTITY topic_dlentry "*[
126 name(.) = 'dlentry' or name(.) = 'plentry' or
127 contains(@class, ' topic/dlentry ')]">
128
129 <!-- ===========================================================================
130 topic/dlhead
131 -->
132 <!ENTITY topic_dlhead "*[name(.) = 'dlhead' or contains(@class, ' topic/dlhead ')]">
133
134 <!-- ===========================================================================
135 topic/dt
136 -->
137 <!ENTITY topic_dt "*[
138 name(.) = 'dt' or name(.) = 'pt' or
139 contains(@class, ' topic/dt ')]">
140
141 <!-- ===========================================================================
142 topic/dthd
143 -->
144 <!ENTITY topic_dthd "*[name(.) = 'dthd' or contains(@class, ' topic/dthd ')]">
145
146 <!-- ===========================================================================
147 topic/fig
148 -->
149 <!ENTITY topic_imagemap "*[
150 name(.) = 'imagemap' or contains(@class, ' topic/fig ut-d/imagemap ')]">
151 <!ENTITY topic_fig "*[
152 name(.) = 'fig' or (
153 contains(@class, ' topic/fig ')
154 and not(contains(@class, ' topic/fig ut-d/imagemap '))
155 )]">
156
157 <!-- ===========================================================================
158 topic/figgroup
159 -->
160 <!ENTITY topic_area "*[
161 name(.) = 'area' or contains(@class, ' topic/figgroup ut-d/area ')]">
162 <!ENTITY topic_figgroup "*[
163 name(.) = 'figgroup' or (
164 contains(@class, ' topic/figgroup ')
165 and not(contains(@class, ' topic/figgroup ut-d/area '))
166 )]">
167
168 <!-- ===========================================================================
169 topic/image
170 -->
171 <!ENTITY topic_image "*[name(.) = 'image' or contains(@class, ' topic/image ')]">
172
173 <!-- ===========================================================================
174 topic/itemgroup
175 -->
176 <!ENTITY topic_info "*[
177 name(.) = 'info' or contains(@class, ' topic/itemgroup task/info ')]">
178 <!ENTITY topic_stepresult "*[
179 name(.) = 'stepresult' or contains(@class, ' topic/itemgroup task/stepresult ')]">
180 <!ENTITY topic_stepxmp "*[
181 name(.) = 'stepxmp' or contains(@class, ' topic/itemgroup task/stepxmp ')]">
182 <!ENTITY topic_tutorialinfo "*[
183 name(.) = 'tutorialinfo' or contains(@class, ' topic/itemgroup task/tutorialinfo ')]">
184
185 <!-- ===========================================================================
186 topic/keyword
187 -->
188 <!ENTITY topic_cmdname "*[
189 name(.) = 'cmdname' or contains(@class, ' topic/keyword sw-d/cmdname ')]">
190 <!ENTITY topic_shape "*[
191 name(.) = 'shape' or contains(@class, ' topic/keyword ut-d/shape ')]">
192 <!ENTITY topic_shortcut "*[
193 name(.) = 'shortcut' or contains(@class, ' topic/keyword ui-d/shortcut ')]">
194 <!ENTITY topic_varname "*[
195 name(.) = 'varname' or contains(@class, ' topic/keyword sw-d/varname ')]">
196 <!ENTITY topic_wintitle "*[
197 name(.) = 'wintitle' or contains(@class, ' topic/keyword sw-d/wintitle ')]">
198
199 <!-- ===========================================================================
200 topic/li
201 -->
202 <!ENTITY topic_choice "*[
203 name(.) = 'choice' or contains(@class, ' topic/li task/choice ')]">
204 <!ENTITY topic_step "*[
205 name(.) = 'step' or contains(@class, ' topic/li task/step ')]">
206 <!ENTITY topic_stepsection "*[
207 name(.) = 'stepsection' or contains(@class, ' topic/li task/stepsection ')]">
208 <!ENTITY topic_substep "*[
209 name(.) = 'substep' or contains(@class, ' topic/li task/substep ')]">
210 <!ENTITY topic_li "*[
211 name(.) = 'li' or (
212 contains(@class, ' topic/li ')
213 and not(contains(@class, ' topic/li task/choice '))
214 and not(contains(@class, ' topic/li task/step '))
215 and not(contains(@class, ' topic/li task/stepsection '))
216 and not(contains(@class, ' topic/li task/substep '))
217 )]">
218 <!ENTITY topic_li_all "*[
219 name(.) = 'li' or name(.) = 'choice' or name(.) = 'step' or
220 name(.) = 'stepsection' or name(.) = 'substep' or
221 contains(@class, ' topic/li ')
222 ]">
223
224 <!-- ===========================================================================
225 topic/link
226 -->
227 <!ENTITY topic_link "*[name(.) = 'link' or contains(@class, ' topic/link ')]">
228
229 <!-- ===========================================================================
230 topic/linkinfo
231 -->
232 <!ENTITY topic_linkinfo "*[name(.) = 'linkinfo' or contains(@class, ' topic/linkinfo ')]">
233
234 <!-- ===========================================================================
235 topic/linklist
236 -->
237 <!ENTITY topic_linklist "*[name(.) = 'linklist' or contains(@class, ' topic/linklist ')]">
238
239 <!-- ===========================================================================
240 topic/linkpool
241 -->
242 <!ENTITY topic_linkpool "*[name(.) = 'linkpool' or contains(@class, ' topic/linkpool ')]">
243
244 <!-- ===========================================================================
245 topic/linktext
246 -->
247 <!ENTITY topic_linktext "*[name(.) = 'linktext' or contains(@class, ' topic/linktext ')]">
248
249 <!-- ===========================================================================
250 topic/navtitle
251 -->
252 <!ENTITY topic_navtitle "*[name(.) = 'navtitle' or contains(@class, ' topic/navtitle ')]">
253
254 <!-- ===========================================================================
255 topic/note
256 -->
257 <!ENTITY topic_note "*[name(.) = 'note' or contains(@class, ' topic/note ')]">
258
259 <!-- ===========================================================================
260 topic/object
261 -->
262 <!ENTITY topic_object "*[name(.) = 'object' or contains(@class, ' topic/object ')]">
263
264 <!-- ===========================================================================
265 topic/ol
266 -->
267 <!ENTITY topic_steps "*[
268 name(.) = 'steps' or contains(@class, ' topic/ol task/steps ')]">
269 <!ENTITY topic_steps-unordered "*[
270 name(.) = 'steps-unordered' or contains(@class, ' topic/ol task/steps-unordered ')]">
271 <!ENTITY topic_substeps "*[
272 name(.) = 'substeps' or contains(@class, ' topic/ol task/substeps ')]">
273 <!ENTITY topic_ol "*[
274 name(.) = 'ol' or (
275 contains(@class, ' topic/ol ')
276 and not(contains(@class, ' topic/ol task/steps '))
277 and not(contains(@class, ' topic/ol task/steps-unordered '))
278 and not(contains(@class, ' topic/ol task/substeps '))
279 )]">
280 <!ENTITY topic_ol_all "*[
281 name(.) = 'ol' or name(.) = 'steps' or name(.) = 'steps-unordered' or name(.) = 'substeps' or
282 contains(@class, ' topic/ol ')
283 ]">
284
285 <!-- ===========================================================================
286 topic/p
287 -->
288 <!ENTITY topic_p "*[name(.) = 'p' or contains(@class, ' topic/p ')]">
289
290 <!-- ===========================================================================
291 topic/param
292 -->
293 <!ENTITY topic_param "*[name(.) = 'param' or contains(@class, ' topic/param ')]">
294
295 <!-- ===========================================================================
296 topic/ph
297 -->
298 <!ENTITY topic_b "*[
299 name(.) = 'b' or contains(@class, ' topic/ph hi-d/b ')]">
300 <!ENTITY topic_cmd "*[
301 name(.) = 'cmd' or contains(@class, ' topic/ph task/cmd ')]">
302 <!ENTITY topic_coords "*[
303 name(.) = 'coords' or contains(@class, ' topic/ph ut-d/coords ')]">
304 <!ENTITY topic_codeph "*[
305 name(.) = 'codeph' or contains(@class, ' topic/ph pr-d/codeph ')]">
306 <!ENTITY topic_filepath "*[
307 name(.) = 'filepath' or contains(@class, ' topic/ph sw-d/filepath ')]">
308 <!ENTITY topic_i "*[
309 name(.) = 'i' or contains(@class, ' topic/ph hi-d/i ')]">
310 <!ENTITY topic_mainbooktitle "*[
311 name(.) = 'mainbooktitle' or contains(@class, ' topic/ph bookmap/mainbooktitle ')]">
312 <!ENTITY topic_menucascade "*[
313 name(.) = 'menucascade' or contains(@class, ' topic/ph hi-d/menucascade ')]">
314 <!ENTITY topic_systemoutput "*[
315 name(.) = 'systemoutput' or contains(@class, ' topic/ph sw-d/systemoutput ')]">
316 <!ENTITY topic_tt "*[
317 name(.) = 'tt' or contains(@class, ' topic/ph hi-d/tt ')]">
318 <!ENTITY topic_u "*[
319 name(.) = 'u' or contains(@class, ' topic/ph hi-d/u ')]">
320 <!ENTITY topic_uicontrol "*[
321 name(.) = 'uicontrol' or contains(@class, ' topic/ph ui-d/uicontrol ')]">
322 <!ENTITY topic_userinput "*[
323 name(.) = 'userinput' or contains(@class, ' topic/ph sw-d/userinput ')]">
324
325 <!-- ===========================================================================
326 topic/pre
327 -->
328 <!ENTITY topic_codeblock "*[
329 name(.) = 'codeblock' or contains(@class, ' topic/pre pr-d/codeblock ')]">
330 <!ENTITY topic_screen "*[
331 name(.) = 'screen' or contains(@class, ' topic/pre ui-d/screen ')]">
332 <!ENTITY topic_pre "*[
333 name(.) = 'pre' or (
334 contains(@class, ' topic/pre ')
335 and not(contains(@class, ' topic/pre pr-d/codeblock '))
336 and not(contains(@class, ' topic/pre ui-d/screen '))
337 )]">
338 <!ENTITY topic_pre_all "*[
339 name(.) = 'pre' or name(.) = 'codeblock' or name(.) = 'screen' or
340 contains(@class, ' topic/pre ')
341 ]">
342
343 <!-- ===========================================================================
344 topic/prolog
345 -->
346 <!ENTITY topic_prolog "*[name(.) = 'prolog' or contains(@class, ' topic/prolog ')]">
347
348 <!-- ===========================================================================
349 topic/publisher
350 -->
351 <!ENTITY topic_publisher "*[name(.) = 'publisher' or contains(@class, ' topic/publisher ')]">
352
353 <!-- ===========================================================================
354 topic/related-links
355 -->
356 <!ENTITY topic_related-links "*[name(.) = 'related-links' or contains(@class, ' topic/related-links ')]">
357
358 <!-- ===========================================================================
359 topic/section
360 -->
361 <!ENTITY topic_example "*[
362 name(.) = 'example' or contains(@class, ' topic/section topic/example ')]">
363 <!ENTITY topic_context "*[
364 name(.) = 'context' or contains(@class, ' topic/section task/context ')]">
365 <!ENTITY topic_postreq "*[
366 name(.) = 'postreq' or contains(@class, ' topic/section task/postreq ')]">
367 <!ENTITY topic_prereq "*[
368 name(.) = 'prereq' or contains(@class, ' topic/section task/prereq ')]">
369 <!ENTITY topic_refsyn "*[
370 name(.) = 'refsyn' or contains(@class, ' topic/section reference/refsyn ')]">
371 <!ENTITY topic_result "*[
372 name(.) = 'result' or contains(@class, ' topic/section task/result ')]">
373 <!ENTITY topic_steps-informal "*[
374 name(.) = 'steps-informal' or contains(@class, ' topic/section task/steps-informal ')]">
375 <!ENTITY topic_section "*[
376 name(.) = 'section' or (
377 contains(@class, ' topic/section ')
378 and not(contains(@class, ' topic/section topic/example '))
379 and not(contains(@class, ' topic/section task/context '))
380 and not(contains(@class, ' topic/section task/postreq '))
381 and not(contains(@class, ' topic/section task/prereq '))
382 and not(contains(@class, ' topic/section reference/refsyn '))
383 and not(contains(@class, ' topic/section task/result '))
384 and not(contains(@class, ' topic/section task/steps-informal '))
385 )]">
386 <!ENTITY topic_section_all "*[
387 name(.) = 'section' or name(.) = 'context' or name(.) = 'example' or
388 name(.) = 'prereq' or name(.) = 'postreq' or name(.) = 'refsyn' or
389 name(.) = 'result' or name(.) = 'steps-informal' or
390 contains(@class, ' topic/section ')
391 ]">
392
393 <!-- ===========================================================================
394 topic/shortdesc
395 -->
396 <!ENTITY topic_shortdesc "*[name(.) = 'shortdesc' or contains(@class, ' topic/shortdesc ')]">
397
398 <!-- ===========================================================================
399 topic/simpletable
400 -->
401 <!ENTITY topic_simpletable "*[
402 name(.) = 'simpletable' or name(.) = 'choicetable' or name(.) = 'properties' or
403 contains(@class, ' topic/simpletable ')
404 ]">
405
406 <!-- ===========================================================================
407 topic/sl
408 -->
409 <!ENTITY topic_sl "*[name(.) = 'sl' or contains(@class, ' topic/sl ')]">
410
411 <!-- ===========================================================================
412 topic/sli
413 -->
414 <!ENTITY topic_sli "*[name(.) = 'sli' or contains(@class, ' topic/sli ')]">
415
416 <!-- ===========================================================================
417 topic/stentry
418 -->
419 <!ENTITY topic_stentry "*[
420 name(.) = 'stentry' or name(.) = 'chdesc' or name(.) = 'chdeschd' or
421 name(.) = 'choption' or name(.) = 'choptionhd' or name(.) = 'propdesc' or
422 name(.) = 'proptype' or name(.) = 'propvalue' or name(.) = 'propdeschd' or
423 name(.) = 'proptypehd' or name(.) = 'propvaluehd' or
424 contains(@class, ' topic/stentry ')
425 ]">
426
427 <!-- ===========================================================================
428 topic/sthead
429 -->
430 <!ENTITY topic_sthead "*[
431 name(.) = 'sthead' or name(.) = 'chhead' or name(.) = 'prophead' or
432 contains(@class, ' topic/sthead ')
433 ]">
434
435 <!-- ===========================================================================
436 topic/strow
437 -->
438 <!ENTITY topic_strow "*[
439 name(.) = 'strow' or name(.) = 'chrow' or name(.) = 'property' or
440 contains(@class, ' topic/strow ')
441 ]">
442
443 <!-- ===========================================================================
444 topic/text
445 -->
446 <!ENTITY topic_text "*[name(.) = 'text' or contains(@class, ' topic/text ')]">
447
448 <!-- ===========================================================================
449 topic/title
450 -->
451 <!ENTITY topic_booktitle "*[
452 name(.) = 'booktitle' or contains(@class, ' topic/title bookmap/booktitle ')]">
453 <!ENTITY topic_title "*[
454 name(.) = 'title' or (
455 contains(@class, ' topic/title ')
456 and not(contains(@class, ' topic/title bookmap/booktitle '))
457 )]">
458 <!ENTITY topic_title_all "*[
459 name(.) = 'title' or name(.) = 'booktitle' or
460 contains(@class, ' topic/title ')
461 ]">
462
463 <!-- ===========================================================================
464 topic/titlealts
465 -->
466 <!ENTITY topic_titlealts "*[name(.) = 'titlealts' or contains(@class, ' topic/titlealts ')]">
467
468 <!-- ===========================================================================
469 topic/topic
470 -->
471 <!ENTITY topic_topic "*[
472 name(.) = 'topic' or name(.) = 'concept' or name(.) = 'reference' or
473 name(.) = 'task' or
474 contains(@class, ' topic/topic ')
475 ]">
476 <!ENTITY topic_topic_all "*[
477 name(.) = 'topic' or name(.) = 'concept' or name(.) = 'reference' or
478 name(.) = 'task' or
479 contains(@class, ' topic/topic ')
480 ]">
481
482 <!-- ===========================================================================
483 topic/ul
484 -->
485 <!ENTITY topic_choices "*[
486 name(.) = 'choices' or contains(@class, ' topic/ul task/choices ')]">
487 <!ENTITY topic_ul "*[
488 name(.) = 'ul' or (
489 contains(@class, ' topic/ul ')
490 and not(contains(@class, ' topic/ul task/choices '))
491 )]">
492 <!ENTITY topic_ul_all "*[
493 name(.) = 'ul' or name(.) = 'choices' or
494 contains(@class, ' topic/ul ')
495 ]">
496
497 <!-- ===========================================================================
498 topic/xref
499 -->
500 <!ENTITY topic_xref "*[name(.) = 'xref' or contains(@class, ' topic/xref ')]">
501