Debian Codegraph @

docs/xsl-generic/html/pi.xsl

raw
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4 xmlns:xlink="http://www.w3.org/1999/xlink"
5 exclude-result-prefixes="doc"
6 version='1.0'>
7
8 <!-- ********************************************************************
9 $Id: pi.xsl 7250 2007-08-18 10:19:00Z xmldoc $
10 ********************************************************************
11
12 This file is part of the XSL DocBook Stylesheet distribution.
13 See ../README or http://docbook.sf.net/release/xsl/current/ for
14 copyright and other information.
15
16 ******************************************************************** -->
17
18 <doc:reference xmlns=""><info><title>HTML Processing Instruction Reference</title>
19 <releaseinfo role="meta">
20 $Id: pi.xsl 7250 2007-08-18 10:19:00Z xmldoc $
21 </releaseinfo>
22 </info>
23 <partintro xml:id="partintro">
24 <title>Introduction</title>
25 <para>This is generated reference documentation for all
26 user-specifiable processing instructions (PIs) in the DocBook
27 XSL stylesheets for HTML output.
28 <note>
29 <para>You add these PIs at particular points in a document to
30 cause specific “exceptions” to formatting/output behavior. To
31 make global changes in formatting/output behavior across an
32 entire document, it’s better to do it by setting an
33 appropriate stylesheet parameter (if there is one).</para>
34 </note>
35 </para>
36 </partintro>
37 </doc:reference>
38
39 <!-- ==================================================================== -->
40
41 <doc:pi name="dbhtml_background-color" xmlns="">
42 <refpurpose>Sets background color for an image</refpurpose>
43 <refdescription>
44 <para>Use the <tag class="xmlpi">dbhtml background-color</tag> PI before or
45 after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
46 <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
47 sibling to the element, to set a background color for the
48 image.</para>
49 </refdescription>
50 <refsynopsisdiv>
51 <synopsis><tag class="xmlpi">dbhtml background-color="<replaceable>color</replaceable>"</tag></synopsis>
52 </refsynopsisdiv>
53 <refparameter>
54 <variablelist>
55 <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
56 <listitem>
57 <para>An HTML color value</para>
58 </listitem>
59 </varlistentry>
60 </variablelist>
61 </refparameter>
62 <refsee role="tcg">
63 <para><link role="tcg"
64 xlink:href="BGcolor.html"
65 >Background color</link></para>
66 </refsee>
67 </doc:pi>
68 <xsl:template name="pi.dbhtml_background-color">
69 <xsl:param name="node" select="."/>
70 <xsl:call-template name="dbhtml-attribute">
71 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
72 <xsl:with-param name="attribute" select="'background-color'"/>
73 </xsl:call-template>
74 </xsl:template>
75
76 <doc:pi name="dbhtml_bgcolor" xmlns="">
77 <refpurpose>Sets background color on a table row or table cell</refpurpose>
78 <refdescription>
79 <para>Use the <tag class="xmlpi">dbhtml bgcolor</tag> PI as child of a table row
80 or cell to set a background color for that table row or cell.</para>
81 </refdescription>
82 <refsynopsisdiv>
83 <synopsis><tag class="xmlpi">dbhtml bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
84 </refsynopsisdiv>
85 <refparameter>
86 <variablelist>
87 <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
88 <listitem>
89 <para>An HTML color value</para>
90 </listitem>
91 </varlistentry>
92 </variablelist>
93 </refparameter>
94 <refsee role="tcg">
95 <para><link role="tcg"
96 xlink:href="BGtableColor.html#CellBGColor"
97 >Cell background color</link></para>
98 </refsee>
99 </doc:pi>
100 <xsl:template name="pi.dbhtml_bgcolor">
101 <xsl:param name="node" select="."/>
102 <xsl:call-template name="dbhtml-attribute">
103 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
104 <xsl:with-param name="attribute" select="'bgcolor'"/>
105 </xsl:call-template>
106 </xsl:template>
107
108 <doc:pi name="dbhtml_cellpadding" xmlns="">
109 <refpurpose>Specifies cellpadding in table or qandaset output</refpurpose>
110 <refdescription>
111 <para>Use the <tag class="xmlpi">dbhtml cellpadding</tag> PI as a child of a
112 <tag>table</tag> or <tag>qandaset</tag> to specify the value
113 for the HTML <literal>cellpadding</literal> attribute in the
114 output HTML table.</para>
115 </refdescription>
116 <refsynopsisdiv>
117 <synopsis><tag class="xmlpi">dbhtml cellpadding="<replaceable>number</replaceable>"</tag></synopsis>
118 </refsynopsisdiv>
119 <refparameter>
120 <variablelist>
121 <varlistentry><term>cellpadding="<replaceable>number</replaceable>"</term>
122 <listitem>
123 <para>Specifies the cellpadding</para>
124 </listitem>
125 </varlistentry>
126 </variablelist>
127 </refparameter>
128 <refsee role="params">
129 <para><parameter>html.cellpadding</parameter></para>
130 </refsee>
131 <refsee role="tcg">
132 <para><link role="tcg"
133 xlink:href="CellSpacing.html"
134 >Cell spacing and cell padding</link>,
135 <link role="tcg" xlink:href="QandAformat.html"
136 >Q and A formatting</link></para>
137 </refsee>
138 </doc:pi>
139 <xsl:template name="pi.dbhtml_cellpadding">
140 <xsl:param name="node" select="."/>
141 <xsl:call-template name="dbhtml-attribute">
142 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
143 <xsl:with-param name="attribute" select="'cellpadding'"/>
144 </xsl:call-template>
145 </xsl:template>
146
147 <doc:pi name="dbhtml_cellspacing" xmlns="">
148 <refpurpose>Specifies cellspacing in table or qandaset output</refpurpose>
149 <refdescription>
150 <para>Use the <tag class="xmlpi">dbhtml cellspacing</tag> PI as a child of a
151 <tag>table</tag> or <tag>qandaset</tag> to specify the value
152 for the HTML <literal>cellspacing</literal> attribute in the
153 output HTML table.</para>
154 </refdescription>
155 <refsynopsisdiv>
156 <synopsis><tag class="xmlpi">dbhtml cellspacing="<replaceable>number</replaceable>"</tag></synopsis>
157 </refsynopsisdiv>
158 <refparameter>
159 <variablelist>
160 <varlistentry><term>cellspacing="<replaceable>number</replaceable>"</term>
161 <listitem>
162 <para>Specifies the cellspacing</para>
163 </listitem>
164 </varlistentry>
165 </variablelist>
166 </refparameter>
167 <refsee role="params">
168 <para><parameter>html.cellspacing</parameter></para>
169 </refsee>
170 <refsee role="tcg">
171 <para><link role="tcg"
172 xlink:href="CellSpacing.html"
173 >Cell spacing and cell padding</link>,
174 <link role="tcg"
175 xlink:href="QandAformat.html"
176 >Q and A formatting</link></para>
177 </refsee>
178 </doc:pi>
179 <xsl:template name="pi.dbhtml_cellspacing">
180 <xsl:param name="node" select="."/>
181 <xsl:call-template name="dbhtml-attribute">
182 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
183 <xsl:with-param name="attribute" select="'cellspacing'"/>
184 </xsl:call-template>
185 </xsl:template>
186
187 <doc:pi name="dbhtml_class" xmlns="">
188 <refpurpose>Set value of the class attribute for a table row</refpurpose>
189 <refdescription>
190 <para>Use the <tag class="xmlpi">dbhtml class</tag> PI as a child of a
191 <tag>row</tag> to specify a <literal>class</literal>
192 attribute and value in the HTML output for that row.</para>
193 </refdescription>
194 <refsynopsisdiv>
195 <synopsis><tag class="xmlpi">dbhtml class="<replaceable>name</replaceable>"</tag></synopsis>
196 </refsynopsisdiv>
197 <refparameter>
198 <variablelist>
199 <varlistentry><term>class="<replaceable>name</replaceable>"</term>
200 <listitem>
201 <para>Specifies the class name</para>
202 </listitem>
203 </varlistentry>
204 </variablelist>
205 </refparameter>
206 <refsee role="tcg">
207 <para><link role="tcg"
208 xlink:href="CSSTableCells.html"
209 >Table styles in HTML output</link></para>
210 </refsee>
211 </doc:pi>
212 <xsl:template name="pi.dbhtml_class">
213 <xsl:param name="node" select="."/>
214 <xsl:call-template name="dbhtml-attribute">
215 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
216 <xsl:with-param name="attribute" select="'class'"/>
217 </xsl:call-template>
218 </xsl:template>
219
220 <doc:pi name="dbhtml_dir" xmlns="">
221 <refpurpose>Specifies a directory name in which to write files</refpurpose>
222 <refdescription>
223 <para>When chunking output, use the <tag class="xmlpi">dbhtml dir</tag> PI
224 as a child of a chunk source to cause the output of that
225 chunk to be written to the specified directory; also, use it
226 as a child of a <tag>mediaobject</tag> to specify a
227 directory into which any long-description files for that
228 <tag>mediaobject</tag> will be written.</para>
229 </refdescription>
230 <refsynopsisdiv>
231 <synopsis><tag class="xmlpi">dbhtml dir="<replaceable>path</replaceable>"</tag></synopsis>
232 </refsynopsisdiv>
233 <refparameter>
234 <variablelist>
235 <varlistentry><term>dir="<replaceable>path</replaceable>"</term>
236 <listitem>
237 <para>Specifies the pathname for the directory</para>
238 </listitem>
239 </varlistentry>
240 </variablelist>
241 </refparameter>
242 <refsee role="params">
243 <para><parameter>base.dir</parameter></para>
244 </refsee>
245 <refsee role="tcg">
246 <para><link role="tcg"
247 xlink:href="Chunking.html#dbhtmlDirPI"
248 >dbhtml dir processing instruction</link></para>
249 </refsee>
250 </doc:pi>
251 <xsl:template name="pi.dbhtml_dir">
252 <xsl:param name="node" select="."/>
253 <xsl:call-template name="dbhtml-attribute">
254 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
255 <xsl:with-param name="attribute" select="'dir'"/>
256 </xsl:call-template>
257 </xsl:template>
258
259 <doc:pi name="dbhtml_filename" xmlns="">
260 <refpurpose>Specifies a filename for a chunk</refpurpose>
261 <refdescription>
262 <para>When chunking output, use the <tag class="xmlpi">dbhtml filename</tag>
263 PI as a child of a chunk source to specify a filename for
264 the output file for that chunk.</para>
265 </refdescription>
266 <refsynopsisdiv>
267 <synopsis><tag class="xmlpi">dbhtml filename="<replaceable>filename</replaceable>"</tag></synopsis>
268 </refsynopsisdiv>
269 <refparameter>
270 <variablelist>
271 <varlistentry><term>filename="<replaceable>path</replaceable>"</term>
272 <listitem>
273 <para>Specifies the filename for the file</para>
274 </listitem>
275 </varlistentry>
276 </variablelist>
277 </refparameter>
278 <refsee role="params">
279 <para><parameter>use.id.as.filename</parameter></para>
280 </refsee>
281 <refsee role="tcg">
282 <para><link role="tcg"
283 xlink:href="Chunking.html#DbhtmlFilenames"
284 >dbhtml filenames</link></para>
285 </refsee>
286 </doc:pi>
287 <xsl:template name="pi.dbhtml_filename">
288 <xsl:param name="node" select="."/>
289 <xsl:call-template name="dbhtml-attribute">
290 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
291 <xsl:with-param name="attribute" select="'filename'"/>
292 </xsl:call-template>
293 </xsl:template>
294
295 <doc:pi name="dbhtml_funcsynopsis-style" xmlns="">
296 <refpurpose>Specifies presentation style for a funcsynopsis</refpurpose>
297 <refdescription>
298 <para>Use the <tag class="xmlpi">dbhtml funcsynopsis-style</tag> PI as a child of
299 a <tag>funcprototype</tag> or anywhere within a funcprototype
300 control the presentation style for the <tag>funcsynopsis</tag>
301 in output.</para>
302 </refdescription>
303 <refsynopsisdiv>
304 <synopsis><tag class="xmlpi">dbhtml funcsynopsis-style="kr"|"ansi"</tag></synopsis>
305 </refsynopsisdiv>
306 <refparameter>
307 <variablelist>
308 <varlistentry><term>funcsynopsis-style="kr"</term>
309 <listitem>
310 <para>Displays the <tag>funcprototype</tag> in K&amp;R style</para>
311 </listitem>
312 </varlistentry>
313 <varlistentry><term>funcsynopsis-style="ansi"</term>
314 <listitem>
315 <para>Displays the <tag>funcprototype</tag> in ANSI style</para>
316 </listitem>
317 </varlistentry>
318 </variablelist>
319 </refparameter>
320 <refsee role="params">
321 <para><parameter>funcsynopsis.style</parameter></para>
322 </refsee>
323 </doc:pi>
324 <xsl:template name="pi.dbhtml_funcsynopsis-style">
325 <xsl:param name="node" select="."/>
326 <xsl:call-template name="dbhtml-attribute">
327 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
328 <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
329 </xsl:call-template>
330 </xsl:template>
331
332 <doc:pi name="dbhtml_img.src.path" xmlns="">
333 <refpurpose>Specifies a path to the location of an image file</refpurpose>
334 <refdescription>
335 <para>Use the <tag class="xmlpi">dbhtml img.src.path</tag> PI before or
336 after an image (<tag>graphic</tag>,
337 <tag>inlinegraphic</tag>, <tag>imagedata</tag>, or
338 <tag>videodata</tag> element) as a sibling to the element,
339 to specify a path to the location of the image; in HTML
340 output, the value specified for the
341 <code>img.src.path</code> attribute is prepended to the
342 filename.</para>
343 </refdescription>
344 <refsynopsisdiv>
345 <synopsis><tag class="xmlpi">dbhtml img.src.path="<replaceable>path</replaceable>"</tag></synopsis>
346 </refsynopsisdiv>
347 <refparameter>
348 <variablelist>
349 <varlistentry><term>img.src.path="<replaceable>path</replaceable>"</term>
350 <listitem>
351 <para>Specifies the pathname to prepend to the name of the image file</para>
352 </listitem>
353 </varlistentry>
354 </variablelist>
355 </refparameter>
356 <refsee role="params">
357 <para><parameter>img.src.path</parameter></para>
358 </refsee>
359 <refsee role="tcg">
360 <para><link role="tcg"
361 xlink:href="GraphicsLocations.html#UsingFileref"
362 >Using fileref</link></para>
363 </refsee>
364 </doc:pi>
365 <xsl:template name="pi.dbhtml_img.src.path">
366 <xsl:param name="node" select="."/>
367 <xsl:call-template name="dbhtml-attribute">
368 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
369 <xsl:with-param name="attribute" select="'img.src.path'"/>
370 </xsl:call-template>
371 </xsl:template>
372
373 <doc:pi name="dbhtml_label-width" xmlns="">
374 <refpurpose>Specifies the label width for a qandaset</refpurpose>
375 <refdescription>
376 <para>Use the <tag class="xmlpi">dbhtml label-width</tag> PI as a child of a
377 <tag>qandaset</tag> to specify the width of labels.</para>
378 </refdescription>
379 <refsynopsisdiv>
380 <synopsis><tag class="xmlpi">dbhtml label-width="<replaceable>width</replaceable>"</tag></synopsis>
381 </refsynopsisdiv>
382 <refparameter>
383 <variablelist>
384 <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
385 <listitem>
386 <para>Specifies the label width (including units)</para>
387 </listitem>
388 </varlistentry>
389 </variablelist>
390 </refparameter>
391 <refsee role="tcg">
392 <para><link role="tcg"
393 xlink:href="QandAformat.html"
394 >Q and A formatting</link></para>
395 </refsee>
396 </doc:pi>
397 <xsl:template name="pi.dbhtml_label-width">
398 <xsl:param name="node" select="."/>
399 <xsl:call-template name="dbhtml-attribute">
400 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
401 <xsl:with-param name="attribute" select="'label-width'"/>
402 </xsl:call-template>
403 </xsl:template>
404
405 <doc:pi name="dbhtml_linenumbering.everyNth" xmlns="">
406 <refpurpose>Specifies interval for lines numbers in verbatims</refpurpose>
407 <refdescription>
408 <para>Use the <tag class="xmlpi">dbhtml linenumbering.everyNth</tag> PI as a child
409 of a “verbatim” element – <tag>programlisting</tag>,
410 <tag>screen</tag>, <tag>synopsis</tag> — to specify
411 the interval at which lines are numbered.</para>
412 </refdescription>
413 <refsynopsisdiv>
414 <synopsis><tag class="xmlpi">dbhtml linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
415 </refsynopsisdiv>
416 <refparameter>
417 <variablelist>
418 <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
419 <listitem>
420 <para>Specifies numbering interval; a number is output
421 before every <replaceable>N</replaceable>th line</para>
422 </listitem>
423 </varlistentry>
424 </variablelist>
425 </refparameter>
426 <refsee role="params">
427 <para><parameter>linenumbering.everyNth</parameter></para>
428 </refsee>
429 <refsee role="tcg">
430 <para><link role="tcg"
431 xlink:href="AnnotateListing.html#LineNumbering"
432 >Line numbering</link></para>
433 </refsee>
434 </doc:pi>
435 <xsl:template name="pi.dbhtml_linenumbering.everyNth">
436 <xsl:param name="node" select="."/>
437 <xsl:call-template name="dbhtml-attribute">
438 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
439 <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
440 </xsl:call-template>
441 </xsl:template>
442
443 <doc:pi name="dbhtml_linenumbering.separator" xmlns="">
444 <refpurpose>Specifies separator text for line numbers in verbatims</refpurpose>
445 <refdescription>
446 <para>Use the <tag class="xmlpi">dbhtml linenumbering.separator</tag> PI as a child
447 of a “verbatim” element – <tag>programlisting</tag>,
448 <tag>screen</tag>, <tag>synopsis</tag> — to specify
449 the separator text output between the line numbers and content.</para>
450 </refdescription>
451 <refsynopsisdiv>
452 <synopsis><tag class="xmlpi">dbhtml linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
453 </refsynopsisdiv>
454 <refparameter>
455 <variablelist>
456 <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
457 <listitem>
458 <para>Specifies the text (zero or more characters)</para>
459 </listitem>
460 </varlistentry>
461 </variablelist>
462 </refparameter>
463 <refsee role="params">
464 <para><parameter>linenumbering.separator</parameter></para>
465 </refsee>
466 <refsee role="tcg">
467 <para><link role="tcg"
468 xlink:href="AnnotateListing.html#LineNumbering"
469 >Line numbering</link></para>
470 </refsee>
471 </doc:pi>
472 <xsl:template name="pi.dbhtml_linenumbering.separator">
473 <xsl:param name="node" select="."/>
474 <xsl:call-template name="dbhtml-attribute">
475 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
476 <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
477 </xsl:call-template>
478 </xsl:template>
479
480 <doc:pi name="dbhtml_linenumbering.width" xmlns="">
481 <refpurpose>Specifies width for line numbers in verbatims</refpurpose>
482 <refdescription>
483 <para>Use the <tag class="xmlpi">dbhtml linenumbering.width</tag> PI as a child
484 of a “verbatim” element – <tag>programlisting</tag>,
485 <tag>screen</tag>, <tag>synopsis</tag> — to specify
486 the width set aside for line numbers.</para>
487 </refdescription>
488 <refsynopsisdiv>
489 <synopsis><tag class="xmlpi">dbhtml linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
490 </refsynopsisdiv>
491 <refparameter>
492 <variablelist>
493 <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
494 <listitem>
495 <para>Specifies the width (inluding units)</para>
496 </listitem>
497 </varlistentry>
498 </variablelist>
499 </refparameter>
500 <refsee role="params">
501 <para><parameter>linenumbering.width</parameter></para>
502 </refsee>
503 <refsee role="tcg">
504 <para><link role="tcg"
505 xlink:href="AnnotateListing.html#LineNumbering"
506 >Line numbering</link></para>
507 </refsee>
508 </doc:pi>
509 <xsl:template name="pi.dbhtml_linenumbering.width">
510 <xsl:param name="node" select="."/>
511 <xsl:call-template name="dbhtml-attribute">
512 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
513 <xsl:with-param name="attribute" select="'linenumbering.width'"/>
514 </xsl:call-template>
515 </xsl:template>
516
517 <doc:pi name="dbhtml_list-presentation" xmlns="">
518 <refpurpose>Specifies presentation style for a variablelist or
519 segmentedlist</refpurpose>
520 <refdescription>
521 <para>Use the <tag class="xmlpi">dbhtml list-presentation</tag> PI as a child of
522 a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
523 control the presentation style for the list (to cause it, for
524 example, to be displayed as a table).</para>
525 </refdescription>
526 <refsynopsisdiv>
527 <synopsis><tag class="xmlpi">dbhtml list-presentation="list"|"table"</tag></synopsis>
528 </refsynopsisdiv>
529 <refparameter>
530 <variablelist>
531 <varlistentry><term>list-presentation="list"</term>
532 <listitem>
533 <para>Displays the list as a list</para>
534 </listitem>
535 </varlistentry>
536 <varlistentry><term>list-presentation="table"</term>
537 <listitem>
538 <para>Displays the list as a table</para>
539 </listitem>
540 </varlistentry>
541 </variablelist>
542 </refparameter>
543 <refsee role="params">
544 <itemizedlist>
545 <listitem>
546 <para><parameter>variablelist.as.table</parameter></para>
547 </listitem>
548 <listitem>
549 <para><parameter>segmentedlist.as.table</parameter></para>
550 </listitem>
551 </itemizedlist>
552 </refsee>
553 <refsee role="tcg">
554 <para><link role="tcg"
555 xlink:href="Variablelists.html#VarListFormatting"
556 >Variable list formatting in HTML</link></para>
557 </refsee>
558 </doc:pi>
559 <xsl:template name="pi.dbhtml_list-presentation">
560 <xsl:param name="node" select="."/>
561 <xsl:call-template name="dbhtml-attribute">
562 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
563 <xsl:with-param name="attribute" select="'list-presentation'"/>
564 </xsl:call-template>
565 </xsl:template>
566
567 <doc:pi name="dbhtml_list-width" xmlns="">
568 <refpurpose>Specifies the width of a variablelist or simplelist</refpurpose>
569 <refdescription>
570 <para>Use the <tag class="xmlpi">dbhtml list-width</tag> PI as a child of a
571 <tag>variablelist</tag> or a <tag>simplelist</tag> presented
572 as a table, to specify the output width.</para>
573 </refdescription>
574 <refsynopsisdiv>
575 <synopsis><tag class="xmlpi">dbhtml list-width="<replaceable>width</replaceable>"</tag></synopsis>
576 </refsynopsisdiv>
577 <refparameter>
578 <variablelist>
579 <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
580 <listitem>
581 <para>Specifies the output width (including units)</para>
582 </listitem>
583 </varlistentry>
584 </variablelist>
585 </refparameter>
586 <refsee role="tcg">
587 <para><link role="tcg"
588 xlink:href="Variablelists.html#VarListFormatting"
589 >Variable list formatting in HTML</link></para>
590 </refsee>
591 </doc:pi>
592 <xsl:template name="pi.dbhtml_list-width">
593 <xsl:param name="node" select="."/>
594 <xsl:call-template name="dbhtml-attribute">
595 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
596 <xsl:with-param name="attribute" select="'list-width'"/>
597 </xsl:call-template>
598 </xsl:template>
599
600 <doc:pi name="dbhtml_row-height" xmlns="">
601 <refpurpose>Specifies the height for a table row</refpurpose>
602 <refdescription>
603 <para>Use the <tag class="xmlpi">dbhtml row-height</tag> PI as a child of a
604 <tag>row</tag> to specify the height of the row.</para>
605 </refdescription>
606 <refsynopsisdiv>
607 <synopsis><tag class="xmlpi">dbhtml row-height="<replaceable>height</replaceable>"</tag></synopsis>
608 </refsynopsisdiv>
609 <refparameter>
610 <variablelist>
611 <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
612 <listitem>
613 <para>Specifies the label height (including units)</para>
614 </listitem>
615 </varlistentry>
616 </variablelist>
617 </refparameter>
618 <refsee role="tcg">
619 <para><link role="tcg"
620 xlink:href="RowHeight.html"
621 >Row height</link></para>
622 </refsee>
623 </doc:pi>
624 <xsl:template name="pi.dbhtml_row-height">
625 <xsl:param name="node" select="."/>
626 <xsl:call-template name="dbhtml-attribute">
627 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
628 <xsl:with-param name="attribute" select="'row-height'"/>
629 </xsl:call-template>
630 </xsl:template>
631
632 <doc:pi name="dbhtml_start" xmlns="">
633 <refpurpose>(obsolete) Sets the starting number on an ordered list</refpurpose>
634 <refdescription>
635 <para><emphasis>This PI is obsolete</emphasis>. The intent of
636 this PI was to provide a means for setting a specific starting
637 number for an ordered list. Instead of this PI, set a value
638 for the <literal>override</literal> attribute on the first
639 <tag>listitem</tag> in the list; that will have the same
640 effect as what this PI was intended for.</para>
641 </refdescription>
642 <refsynopsisdiv>
643 <synopsis><tag class="xmlpi">dbhtml start="<replaceable>character</replaceable>"</tag></synopsis>
644 </refsynopsisdiv>
645 <refparameter>
646 <variablelist>
647 <varlistentry><term>start="<replaceable>character</replaceable>"</term>
648 <listitem>
649 <para>Specifies the character to use as the starting
650 number; use 0-9, a-z, A-Z, or lowercase or uppercase
651 Roman numerals</para>
652 </listitem>
653 </varlistentry>
654 </variablelist>
655 </refparameter>
656 <refsee role="tcg">
657 <para><link role="tcg"
658 xlink:href="Orderedlists.html#ListStartNum"
659 >List starting number</link></para>
660 </refsee>
661 </doc:pi>
662 <xsl:template name="pi.dbhtml_start">
663 <xsl:param name="node" select="."/>
664 <xsl:call-template name="pi-attribute">
665 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
666 <xsl:with-param name="attribute" select="'start'"/>
667 </xsl:call-template>
668 </xsl:template>
669
670 <doc:pi name="dbhtml_table-summary" xmlns="">
671 <refpurpose>Specifies summary for table, variablelist, segmentedlist, or qandaset output</refpurpose>
672 <refdescription>
673 <para>Use the <tag class="xmlpi">dbhtml table-summary</tag> PI as a child of
674 a <tag>table</tag>, <tag>variablelist</tag>,
675 <tag>segmentedlist</tag>, or <tag>qandaset</tag> to specify
676 the text for the HTML <literal>summary</literal> attribute
677 in the output HTML table.</para>
678 </refdescription>
679 <refsynopsisdiv>
680 <synopsis><tag class="xmlpi">dbhtml table-summary="<replaceable>text</replaceable>"</tag></synopsis>
681 </refsynopsisdiv>
682 <refparameter>
683 <variablelist>
684 <varlistentry><term>table-summary="<replaceable>text</replaceable>"</term>
685 <listitem>
686 <para>Specifies the summary text (zero or more characters)</para>
687 </listitem>
688 </varlistentry>
689 </variablelist>
690 </refparameter>
691 <refsee role="tcg">
692 <para><link role="tcg"
693 xlink:href="Variablelists.html#VarListFormatting"
694 >Variable list formatting in HTML</link>,
695 <link role="tcg" xlink:href="TableSummary.html"
696 >Table summary text</link></para>
697 </refsee>
698 </doc:pi>
699 <xsl:template name="pi.dbhtml_table-summary">
700 <xsl:param name="node" select="."/>
701 <xsl:call-template name="dbhtml-attribute">
702 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
703 <xsl:with-param name="attribute" select="'table-summary'"/>
704 </xsl:call-template>
705 </xsl:template>
706
707 <doc:pi name="dbhtml_table-width" xmlns="">
708 <refpurpose>Specifies the width for a table</refpurpose>
709 <refdescription>
710 <para>Use the <tag class="xmlpi">dbhtml table-width</tag> PI as a child of a
711 <tag>table</tag> to specify the width of the table in
712 output.</para>
713 </refdescription>
714 <refsynopsisdiv>
715 <synopsis><tag class="xmlpi">dbhtml table-width="<replaceable>width</replaceable>"</tag></synopsis>
716 </refsynopsisdiv>
717 <refparameter>
718 <variablelist>
719 <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
720 <listitem>
721 <para>Specifies the table width (including units or as a percentage)</para>
722 </listitem>
723 </varlistentry>
724 </variablelist>
725 </refparameter>
726 <refsee role="params">
727 <para><parameter>default.table.width</parameter></para>
728 </refsee>
729 <refsee role="tcg">
730 <para><link role="tcg"
731 xlink:href="Tables.html#TableWidth"
732 >Table width</link></para>
733 </refsee>
734 </doc:pi>
735 <xsl:template name="pi.dbhtml_table-width">
736 <xsl:param name="node" select="."/>
737 <xsl:call-template name="dbhtml-attribute">
738 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
739 <xsl:with-param name="attribute" select="'table-width'"/>
740 </xsl:call-template>
741 </xsl:template>
742
743 <doc:pi name="dbhtml_term-presentation" xmlns="">
744 <refpurpose>Sets character formatting for terms in a variablelist</refpurpose>
745 <refdescription>
746 <para>Use the <tag class="xmlpi">dbhtml term-presentation</tag> PI as a child
747 of a <tag>variablelist</tag> to set character formatting for
748 the <tag>term</tag> output of the list.</para>
749 </refdescription>
750 <refsynopsisdiv>
751 <synopsis><tag class="xmlpi">dbhtml term-presentation="bold"|"italic"|"bold-italic"</tag></synopsis>
752 </refsynopsisdiv>
753 <refparameter>
754 <variablelist>
755 <varlistentry><term>term-presentation="<replaceable>bold</replaceable>"</term>
756 <listitem>
757 <para>Specifies that terms are displayed in bold</para>
758 </listitem>
759 </varlistentry>
760 <varlistentry><term>term-presentation="<replaceable>italic</replaceable>"</term>
761 <listitem>
762 <para>Specifies that terms are displayed in italic</para>
763 </listitem>
764 </varlistentry>
765 <varlistentry><term>term-presentation="<replaceable>bold-italic</replaceable>"</term>
766 <listitem>
767 <para>Specifies that terms are displayed in bold-italic</para>
768 </listitem>
769 </varlistentry>
770 </variablelist>
771 </refparameter>
772 <refsee role="tcg">
773 <para><link role="tcg"
774 xlink:href="Variablelists.html#VarListFormatting"
775 >Variable list formatting in HTML</link></para>
776 </refsee>
777 </doc:pi>
778 <xsl:template name="pi.dbhtml_term-presentation">
779 <xsl:param name="node" select="."/>
780 <xsl:call-template name="dbhtml-attribute">
781 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
782 <xsl:with-param name="attribute" select="'term-presentation'"/>
783 </xsl:call-template>
784 </xsl:template>
785
786 <doc:pi name="dbhtml_term-separator" xmlns="">
787 <refpurpose>Specifies separator text among terms in a varlistentry</refpurpose>
788 <refdescription>
789 <para>Use the <tag class="xmlpi">dbhtml term-separator</tag> PI as a child
790 of a <tag>variablelist</tag> to specify the separator text
791 among <tag>term</tag> instances.</para>
792 </refdescription>
793 <refsynopsisdiv>
794 <synopsis><tag class="xmlpi">dbhtml term-separator="<replaceable>text</replaceable>"</tag></synopsis>
795 </refsynopsisdiv>
796 <refparameter>
797 <variablelist>
798 <varlistentry><term>term-separator="<replaceable>text</replaceable>"</term>
799 <listitem>
800 <para>Specifies the text (zero or more characters)</para>
801 </listitem>
802 </varlistentry>
803 </variablelist>
804 </refparameter>
805 <refsee role="params">
806 <para><parameter>variablelist.term.separator</parameter></para>
807 </refsee>
808 <refsee role="tcg">
809 <para><link role="tcg"
810 xlink:href="Variablelists.html#VarListFormatting"
811 >Variable list formatting in HTML</link></para>
812 </refsee>
813 </doc:pi>
814 <xsl:template name="pi.dbhtml_term-separator">
815 <xsl:param name="node" select="."/>
816 <xsl:call-template name="dbhtml-attribute">
817 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
818 <xsl:with-param name="attribute" select="'term-separator'"/>
819 </xsl:call-template>
820 </xsl:template>
821
822 <doc:pi name="dbhtml_term-width" xmlns="">
823 <refpurpose>Specifies the term width for a variablelist</refpurpose>
824 <refdescription>
825 <para>Use the <tag class="xmlpi">dbhtml term-width</tag> PI as a child of a
826 <tag>variablelist</tag> to specify the width for
827 <tag>term</tag> output.</para>
828 </refdescription>
829 <refsynopsisdiv>
830 <synopsis><tag class="xmlpi">dbhtml term-width="<replaceable>width</replaceable>"</tag></synopsis>
831 </refsynopsisdiv>
832 <refparameter>
833 <variablelist>
834 <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
835 <listitem>
836 <para>Specifies the term width (including units)</para>
837 </listitem>
838 </varlistentry>
839 </variablelist>
840 </refparameter>
841 <refsee role="tcg">
842 <para><link role="tcg"
843 xlink:href="Variablelists.html#VarListFormatting"
844 >Variable list formatting in HTML</link></para>
845 </refsee>
846 </doc:pi>
847 <xsl:template name="pi.dbhtml_term-width">
848 <xsl:param name="node" select="."/>
849 <xsl:call-template name="dbhtml-attribute">
850 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
851 <xsl:with-param name="attribute" select="'term-width'"/>
852 </xsl:call-template>
853 </xsl:template>
854
855 <doc:pi name="dbhtml_toc" xmlns="">
856 <refpurpose>Specifies whether a TOC should be generated for a qandaset</refpurpose>
857 <refdescription>
858 <para>Use the <tag class="xmlpi">dbhtml toc</tag> PI as a child of a
859 <tag>qandaset</tag> to specify whether a table of contents
860 (TOC) is generated for the <tag>qandaset</tag>.</para>
861 </refdescription>
862 <refsynopsisdiv>
863 <synopsis><tag class="xmlpi">dbhtml toc="0"|"1"</tag></synopsis>
864 </refsynopsisdiv>
865 <refparameter>
866 <variablelist>
867 <varlistentry><term>toc="0"</term>
868 <listitem>
869 <para>If zero, no TOC is generated</para>
870 </listitem>
871 </varlistentry>
872 <varlistentry><term>toc="1"</term>
873 <listitem>
874 <para>If <code>1</code> (or any non-zero value),
875 a TOC is generated</para>
876 </listitem>
877 </varlistentry>
878 </variablelist>
879 </refparameter>
880 <refsee role="tcg">
881 <para><link role="tcg"
882 xlink:href="QandAtoc.html"
883 >Q and A list of questions</link>,
884 <link role="tcg"
885 xlink:href="QandAformat.html"
886 >Q and A formatting</link></para>
887 </refsee>
888 </doc:pi>
889 <xsl:template name="pi.dbhtml_toc">
890 <xsl:param name="node" select="."/>
891 <xsl:call-template name="dbhtml-attribute">
892 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
893 <xsl:with-param name="attribute" select="'toc'"/>
894 </xsl:call-template>
895 </xsl:template>
896
897 <doc:pi name="dbcmdlist" xmlns="">
898 <refpurpose>Generates a hyperlinked list of commands</refpurpose>
899 <refdescription>
900 <para>Use the <tag class="xmlpi">dbcmdlist</tag> PI as the child of any
901 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
902 <tag>cmdsynopsis</tag> instances; a hyperlinked navigational
903 “command list” will be generated at the top of output for that
904 element, enabling users to quickly jump
905 to each command synopsis.</para>
906 </refdescription>
907 <refsynopsisdiv>
908 <synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis>
909 </refsynopsisdiv>
910 <refparameter>
911 <para>[No parameters]</para>
912 </refparameter>
913 </doc:pi>
914 <xsl:template name="pi.dbcmdlist">
915 <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/>
916 <xsl:if test="count($cmdsynopses)&lt;1">
917 <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text>
918 </xsl:message>
919 </xsl:if>
920 <dl>
921 <xsl:call-template name="process.cmdsynopsis.list">
922 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
923 </xsl:call-template>
924 </dl>
925 </xsl:template>
926
927 <doc:pi name="dbfunclist" xmlns="">
928 <refpurpose>Generates a hyperlinked list of functions</refpurpose>
929 <refdescription>
930 <para>Use the <tag class="xmlpi">dbfunclist</tag> PI as the child of any
931 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
932 <tag>funcsynopsis</tag> instances; a hyperlinked
933 navigational “function list” will be generated at the top of
934 output for that element, enabling users to quickly
935 jump to to each function synopsis.</para>
936 </refdescription>
937 <refsynopsisdiv>
938 <synopsis><tag class="xmlpi">dbfunclist</tag></synopsis>
939 </refsynopsisdiv>
940 <refparameter>
941 <para>[No parameters]</para>
942 </refparameter>
943 </doc:pi>
944 <xsl:template name="pi.dbfunclist">
945 <xsl:variable name="funcsynopses" select="..//funcsynopsis"/>
946 <xsl:if test="count($funcsynopses)&lt;1">
947 <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text>
948 </xsl:message>
949 </xsl:if>
950 <dl>
951 <xsl:call-template name="process.funcsynopsis.list">
952 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
953 </xsl:call-template>
954 </dl>
955 </xsl:template>
956
957 <doc:pi name="dbhtml-include_href" xmlns="">
958 <refpurpose>Copies an external well-formed HTML/XML file into current doc</refpurpose>
959 <refdescription>
960 <para>Use the <tag class="xmlpi">dbhtml-include href</tag> PI anywhere in a
961 document to cause the contents of the file referenced by the
962 <code>href</code> pseudo-attribute to be copied/inserted “as
963 is” into your HTML output at the point in document order
964 where the PI occurs in the source.</para>
965 <note>
966 <para>The referenced file may contain plain text (as long as
967 it is “wrapped” in an <tag>html</tag> element — see the
968 note below) or markup in any arbitrary vocabulary,
969 including HTML — but it must conform to XML
970 well-formedness constraints (because the feature in XSLT
971 1.0 for opening external files, the
972 <function>document()</function> function, can only handle
973 files that meet XML well-formedness constraints).</para>
974 <para>Among other things, XML well-formedness constraints
975 require a document to have <emphasis>a single root
976 element</emphasis>. So if the content you want to
977 include is plain text or is markup that does
978 <emphasis>not</emphasis> have a single root element,
979 <emphasis role="strong">wrap the content in an
980 <tag>html</tag> element</emphasis>. The stylesheets will
981 strip out that surrounding <tag>html</tag> “wrapper” when
982 they find it, leaving just the content you want to
983 insert.</para>
984 </note>
985 </refdescription>
986 <refsynopsisdiv>
987 <synopsis><tag class="xmlpi">dbhtml-include href="<replaceable>URI</replaceable>"</tag></synopsis>
988 </refsynopsisdiv>
989 <refparameter>
990 <variablelist>
991 <varlistentry><term>href="<replaceable>URI</replaceable>"</term>
992 <listitem>
993 <para>Specifies the URI for the file to include; the URI
994 can be, for example, a remote <literal>http:</literal>
995 URI, or a local filesystem <literal>file:</literal>
996 URI</para>
997 </listitem>
998 </varlistentry>
999 </variablelist>
1000 </refparameter>
1001 <refsee role="params">
1002 <para><parameter>textinsert.extension</parameter></para>
1003 </refsee>
1004 <refsee role="tcg">
1005 <para><link role="tcg"
1006 xlink:href="InsertExtHtml.html"
1007 >Inserting external HTML code</link>,
1008 <link
1009 xlink:href="ExternalCode.html"
1010 >External code files</link></para>
1011 </refsee>
1012 </doc:pi>
1013 <xsl:template name="pi.dbhtml-include">
1014 <xsl:param name="href">
1015 <xsl:call-template name="dbhtml-attribute">
1016 <xsl:with-param name="pis" select="."/>
1017 <xsl:with-param name="attribute">href</xsl:with-param>
1018 </xsl:call-template>
1019 </xsl:param>
1020 <xsl:choose>
1021 <xsl:when test="$href != ''">
1022 <xsl:variable name="content" select="document($href,/)"/>
1023 <xsl:choose>
1024 <xsl:when test="$content/*">
1025 <xsl:choose>
1026 <xsl:when test="$content/*[1][self::html]">
1027 <!-- include just the children of html wrapper -->
1028 <xsl:copy-of select="$content/*[1]/node()"/>
1029 </xsl:when>
1030 <xsl:otherwise>
1031 <xsl:copy-of select="$content"/>
1032 </xsl:otherwise>
1033 </xsl:choose>
1034 </xsl:when>
1035 <xsl:otherwise>
1036 <xsl:message>
1037 <xsl:text>ERROR: dbhtml-include processing instruction </xsl:text>
1038 <xsl:text>href has no content.</xsl:text>
1039 </xsl:message>
1040 </xsl:otherwise>
1041 </xsl:choose>
1042 </xsl:when>
1043 <xsl:otherwise>
1044 <xsl:message>
1045 <xsl:text>ERROR: dbhtml-include processing instruction has </xsl:text>
1046 <xsl:text>missing or empty href value.</xsl:text>
1047 </xsl:message>
1048 </xsl:otherwise>
1049 </xsl:choose>
1050 </xsl:template>
1051
1052 <!-- ==================================================================== -->
1053
1054 <xsl:template name="dbhtml-attribute">
1055 <!-- * dbhtml-attribute is an interal utility template for retrieving -->
1056 <!-- * pseudo-attributes/parameters from PIs -->
1057 <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
1058 <xsl:param name="attribute">filename</xsl:param>
1059 <xsl:call-template name="pi-attribute">
1060 <xsl:with-param name="pis" select="$pis"/>
1061 <xsl:with-param name="attribute" select="$attribute"/>
1062 </xsl:call-template>
1063 </xsl:template>
1064
1065 <!-- ==================================================================== -->
1066
1067 <xsl:template match="processing-instruction()">
1068 </xsl:template>
1069
1070 <xsl:template match="processing-instruction('dbhtml')">
1071 <!-- nop -->
1072 </xsl:template>
1073
1074 <!-- ==================================================================== -->
1075
1076 <xsl:template match="processing-instruction('dbcmdlist')">
1077 <xsl:call-template name="pi.dbcmdlist"/>
1078 </xsl:template>
1079 <xsl:template name="process.cmdsynopsis.list">
1080 <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
1081 <xsl:param name="count" select="1"/>
1082
1083 <xsl:choose>
1084 <xsl:when test="$count>count($cmdsynopses)"></xsl:when>
1085 <xsl:otherwise>
1086 <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
1087
1088 <dt>
1089 <a>
1090 <xsl:attribute name="href">
1091 <xsl:text>#</xsl:text>
1092 <xsl:call-template name="object.id">
1093 <xsl:with-param name="object" select="$cmdsyn"/>
1094 </xsl:call-template>
1095 </xsl:attribute>
1096
1097 <xsl:choose>
1098 <xsl:when test="$cmdsyn/@xreflabel">
1099 <xsl:call-template name="xref.xreflabel">
1100 <xsl:with-param name="target" select="$cmdsyn"/>
1101 </xsl:call-template>
1102 </xsl:when>
1103 <xsl:otherwise>
1104 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1105 <xsl:with-param name="target" select="$cmdsyn"/>
1106 </xsl:apply-templates>
1107 </xsl:otherwise>
1108 </xsl:choose>
1109 </a>
1110 </dt>
1111
1112 <xsl:call-template name="process.cmdsynopsis.list">
1113 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
1114 <xsl:with-param name="count" select="$count+1"/>
1115 </xsl:call-template>
1116 </xsl:otherwise>
1117 </xsl:choose>
1118 </xsl:template>
1119
1120 <!-- ==================================================================== -->
1121
1122 <xsl:template match="processing-instruction('dbfunclist')">
1123 <xsl:call-template name="pi.dbfunclist"/>
1124 </xsl:template>
1125 <xsl:template name="process.funcsynopsis.list">
1126 <xsl:param name="funcsynopses"/><!-- empty node list by default -->
1127 <xsl:param name="count" select="1"/>
1128
1129 <xsl:choose>
1130 <xsl:when test="$count>count($funcsynopses)"></xsl:when>
1131 <xsl:otherwise>
1132 <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
1133
1134 <dt>
1135 <a>
1136 <xsl:attribute name="href">
1137 <xsl:text>#</xsl:text>
1138 <xsl:call-template name="object.id">
1139 <xsl:with-param name="object" select="$cmdsyn"/>
1140 </xsl:call-template>
1141 </xsl:attribute>
1142
1143 <xsl:choose>
1144 <xsl:when test="$cmdsyn/@xreflabel">
1145 <xsl:call-template name="xref.xreflabel">
1146 <xsl:with-param name="target" select="$cmdsyn"/>
1147 </xsl:call-template>
1148 </xsl:when>
1149 <xsl:otherwise>
1150 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1151 <xsl:with-param name="target" select="$cmdsyn"/>
1152 </xsl:apply-templates>
1153 </xsl:otherwise>
1154 </xsl:choose>
1155 </a>
1156 </dt>
1157
1158 <xsl:call-template name="process.funcsynopsis.list">
1159 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
1160 <xsl:with-param name="count" select="$count+1"/>
1161 </xsl:call-template>
1162 </xsl:otherwise>
1163 </xsl:choose>
1164 </xsl:template>
1165
1166 <!-- ==================================================================== -->
1167
1168 <xsl:template match="processing-instruction('dbhtml-include')">
1169 <xsl:call-template name="pi.dbhtml-include"/>
1170 </xsl:template>
1171
1172 <!-- ==================================================================== -->
1173
1174 <xsl:template name="dbhtml-dir">
1175 <xsl:param name="context" select="."/>
1176 <!-- directories are now inherited from previous levels -->
1177 <xsl:variable name="ppath">
1178 <xsl:if test="$context/parent::*">
1179 <xsl:call-template name="dbhtml-dir">
1180 <xsl:with-param name="context" select="$context/parent::*"/>
1181 </xsl:call-template>
1182 </xsl:if>
1183 </xsl:variable>
1184 <xsl:variable name="path">
1185 <xsl:call-template name="pi.dbhtml_dir">
1186 <xsl:with-param name="node" select="$context"/>
1187 </xsl:call-template>
1188 </xsl:variable>
1189 <xsl:choose>
1190 <xsl:when test="$path = ''">
1191 <xsl:if test="$ppath != ''">
1192 <xsl:value-of select="$ppath"/>
1193 </xsl:if>
1194 </xsl:when>
1195 <xsl:otherwise>
1196 <xsl:if test="$ppath != ''">
1197 <xsl:value-of select="$ppath"/>
1198 <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
1199 <xsl:text>/</xsl:text>
1200 </xsl:if>
1201 </xsl:if>
1202 <xsl:value-of select="$path"/>
1203 <xsl:text>/</xsl:text>
1204 </xsl:otherwise>
1205 </xsl:choose>
1206 </xsl:template>
1207
1208 <!-- There are two templates matching this PI in htmlhelp-common.xsl -->
1209 <doc:pi name="dbhh" xmlns="">
1210 <refpurpose>Sets topic name and topic id for context-sensitive HTML Help</refpurpose>
1211 <refdescription>
1212 <para>Use the <tag class="xmlpi">dbhh</tag> PI as a child of components
1213 that should be used as targets for context-sensitive help requests.</para>
1214 </refdescription>
1215 <refsynopsisdiv>
1216 <synopsis><tag class="xmlpi">dbhh topicname="<replaceable>name</replaceable>" topicid="<replaceable>id</replaceable>"</tag></synopsis>
1217 </refsynopsisdiv>
1218 <refparameter>
1219 <variablelist>
1220 <varlistentry><term>topicname="<replaceable>name</replaceable>"</term>
1221 <listitem>
1222 <para>Specifies a unique string constant that identifies a help topic</para>
1223 </listitem>
1224 </varlistentry>
1225 <varlistentry><term>topicid="<replaceable>id</replaceable>"</term>
1226 <listitem>
1227 <para>Specifies a unique integer value for the <literal>topicname</literal> string</para>
1228 </listitem>
1229 </varlistentry>
1230 </variablelist>
1231 </refparameter>
1232 <refsee role="tcg">
1233 <para><link role="tcg"
1234 xlink:href="HtmlHelp.html#HHContextHelp"
1235 >Context-sensitive help</link></para>
1236 </refsee>
1237 </doc:pi>
1238
1239
1240 </xsl:stylesheet>