Debian Codegraph @

docbook-xsl-ns/html/pi.xsl

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