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"
8 <!-- ********************************************************************
9 $Id: pi.xsl 8394 2009-04-02 20:31:30Z mzjn $
10 ********************************************************************
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.
16 ******************************************************************** -->
18 <doc:reference xmlns=""><info><title>HTML Processing Instruction Reference</title>
19 <releaseinfo role="meta">
20 $Id: pi.xsl 8394 2009-04-02 20:31:30Z mzjn $
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.
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>
39 <!-- ==================================================================== -->
41 <doc:pi name="dbhtml_background-color" xmlns="">
42 <refpurpose>Sets background color for an image</refpurpose>
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
51 <synopsis><tag class="xmlpi">dbhtml background-color="<replaceable>color</replaceable>"</tag></synopsis>
55 <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
57 <para>An HTML color value</para>
63 <para><link role="tcg"
64 xlink:href="BGcolor.html"
65 >Background color</link></para>
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'"/>
76 <doc:pi name="dbhtml_bgcolor" xmlns="">
77 <refpurpose>Sets background color on a CALS table row or table cell</refpurpose>
79 <para>Use the <tag class="xmlpi">dbhtml bgcolor</tag> PI as child of a CALS table row
80 or cell to set a background color for that table row or cell.</para>
83 <synopsis><tag class="xmlpi">dbhtml bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
87 <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
89 <para>An HTML color value</para>
95 <para><link role="tcg"
96 xlink:href="BGtableColor.html#CellBGColor"
97 >Cell background color</link></para>
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'"/>
108 <doc:pi name="dbhtml_cellpadding" xmlns="">
109 <refpurpose>Specifies cellpadding in CALS table or qandaset output</refpurpose>
111 <para>Use the <tag class="xmlpi">dbhtml cellpadding</tag> PI as a child of a
112 CALS <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>
117 <synopsis><tag class="xmlpi">dbhtml cellpadding="<replaceable>number</replaceable>"</tag></synopsis>
121 <varlistentry><term>cellpadding="<replaceable>number</replaceable>"</term>
123 <para>Specifies the cellpadding</para>
128 <refsee role="params">
129 <para><parameter>html.cellpadding</parameter></para>
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>
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'"/>
147 <doc:pi name="dbhtml_cellspacing" xmlns="">
148 <refpurpose>Specifies cellspacing in CALS table or qandaset output</refpurpose>
150 <para>Use the <tag class="xmlpi">dbhtml cellspacing</tag> PI as a child of a
151 CALS <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>
156 <synopsis><tag class="xmlpi">dbhtml cellspacing="<replaceable>number</replaceable>"</tag></synopsis>
160 <varlistentry><term>cellspacing="<replaceable>number</replaceable>"</term>
162 <para>Specifies the cellspacing</para>
167 <refsee role="params">
168 <para><parameter>html.cellspacing</parameter></para>
171 <para><link role="tcg"
172 xlink:href="CellSpacing.html"
173 >Cell spacing and cell padding</link>,
175 xlink:href="QandAformat.html"
176 >Q and A formatting</link></para>
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'"/>
187 <doc:pi name="dbhtml_class" xmlns="">
188 <refpurpose>Set value of the class attribute for a CALS table row</refpurpose>
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>
195 <synopsis><tag class="xmlpi">dbhtml class="<replaceable>name</replaceable>"</tag></synopsis>
199 <varlistentry><term>class="<replaceable>name</replaceable>"</term>
201 <para>Specifies the class name</para>
207 <para><link role="tcg"
208 xlink:href="CSSTableCells.html"
209 >Table styles in HTML output</link></para>
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'"/>
220 <doc:pi name="dbhtml_dir" xmlns="">
221 <refpurpose>Specifies a directory name in which to write files</refpurpose>
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>
231 <synopsis><tag class="xmlpi">dbhtml dir="<replaceable>path</replaceable>"</tag></synopsis>
235 <varlistentry><term>dir="<replaceable>path</replaceable>"</term>
237 <para>Specifies the pathname for the directory</para>
242 <refsee role="params">
243 <para><parameter>base.dir</parameter></para>
246 <para><link role="tcg"
247 xlink:href="Chunking.html#dbhtmlDirPI"
248 >dbhtml dir processing instruction</link></para>
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'"/>
259 <doc:pi name="dbhtml_filename" xmlns="">
260 <refpurpose>Specifies a filename for a chunk</refpurpose>
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>
267 <synopsis><tag class="xmlpi">dbhtml filename="<replaceable>filename</replaceable>"</tag></synopsis>
271 <varlistentry><term>filename="<replaceable>path</replaceable>"</term>
273 <para>Specifies the filename for the file</para>
278 <refsee role="params">
279 <para><parameter>use.id.as.filename</parameter></para>
282 <para><link role="tcg"
283 xlink:href="Chunking.html#DbhtmlFilenames"
284 >dbhtml filenames</link></para>
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'"/>
295 <doc:pi name="dbhtml_funcsynopsis-style" xmlns="">
296 <refpurpose>Specifies presentation style for a funcsynopsis</refpurpose>
298 <para>Use the <tag class="xmlpi">dbhtml funcsynopsis-style</tag> PI as a child of
299 a <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
300 to control the presentation style for output of all
301 <tag>funcprototype</tag> instances within that funcsynopsis.</para>
304 <synopsis><tag class="xmlpi">dbhtml funcsynopsis-style="kr"|"ansi"</tag></synopsis>
308 <varlistentry><term>funcsynopsis-style="kr"</term>
310 <para>Displays <tag>funcprototype</tag> output in K&R style</para>
313 <varlistentry><term>funcsynopsis-style="ansi"</term>
315 <para>Displays <tag>funcprototype</tag> output in ANSI style</para>
320 <refsee role="params">
321 <para><parameter>funcsynopsis.style</parameter></para>
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'"/>
332 <doc:pi name="dbhtml_img.src.path" xmlns="">
333 <refpurpose>Specifies a path to the location of an image file</refpurpose>
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
345 <synopsis><tag class="xmlpi">dbhtml img.src.path="<replaceable>path</replaceable>"</tag></synopsis>
349 <varlistentry><term>img.src.path="<replaceable>path</replaceable>"</term>
351 <para>Specifies the pathname to prepend to the name of the image file</para>
356 <refsee role="params">
357 <para><parameter>img.src.path</parameter></para>
360 <para><link role="tcg"
361 xlink:href="GraphicsLocations.html#UsingFileref"
362 >Using fileref</link></para>
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'"/>
373 <doc:pi name="dbhtml_label-width" xmlns="">
374 <refpurpose>Specifies the label width for a qandaset</refpurpose>
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>
380 <synopsis><tag class="xmlpi">dbhtml label-width="<replaceable>width</replaceable>"</tag></synopsis>
384 <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
386 <para>Specifies the label width (including units)</para>
392 <para><link role="tcg"
393 xlink:href="QandAformat.html"
394 >Q and A formatting</link></para>
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'"/>
405 <doc:pi name="dbhtml_linenumbering.everyNth" xmlns="">
406 <refpurpose>Specifies interval for line numbers in verbatims</refpurpose>
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>
414 <synopsis><tag class="xmlpi">dbhtml linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
418 <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
420 <para>Specifies numbering interval; a number is output
421 before every <replaceable>N</replaceable>th line</para>
426 <refsee role="params">
427 <para><parameter>linenumbering.everyNth</parameter></para>
430 <para><link role="tcg"
431 xlink:href="AnnotateListing.html#LineNumbering"
432 >Line numbering</link></para>
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'"/>
443 <doc:pi name="dbhtml_linenumbering.separator" xmlns="">
444 <refpurpose>Specifies separator text for line numbers in verbatims</refpurpose>
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>
452 <synopsis><tag class="xmlpi">dbhtml linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
456 <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
458 <para>Specifies the text (zero or more characters)</para>
463 <refsee role="params">
464 <para><parameter>linenumbering.separator</parameter></para>
467 <para><link role="tcg"
468 xlink:href="AnnotateListing.html#LineNumbering"
469 >Line numbering</link></para>
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'"/>
480 <doc:pi name="dbhtml_linenumbering.width" xmlns="">
481 <refpurpose>Specifies width for line numbers in verbatims</refpurpose>
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>
489 <synopsis><tag class="xmlpi">dbhtml linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
493 <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
495 <para>Specifies the width (inluding units)</para>
500 <refsee role="params">
501 <para><parameter>linenumbering.width</parameter></para>
504 <para><link role="tcg"
505 xlink:href="AnnotateListing.html#LineNumbering"
506 >Line numbering</link></para>
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'"/>
517 <doc:pi name="dbhtml_list-presentation" xmlns="">
518 <refpurpose>Specifies presentation style for a variablelist or
519 segmentedlist</refpurpose>
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>
527 <synopsis><tag class="xmlpi">dbhtml list-presentation="list"|"table"</tag></synopsis>
531 <varlistentry><term>list-presentation="list"</term>
533 <para>Displays the list as a list</para>
536 <varlistentry><term>list-presentation="table"</term>
538 <para>Displays the list as a table</para>
543 <refsee role="params">
546 <para><parameter>variablelist.as.table</parameter></para>
549 <para><parameter>segmentedlist.as.table</parameter></para>
554 <para><link role="tcg"
555 xlink:href="Variablelists.html#VarListFormatting"
556 >Variable list formatting in HTML</link></para>
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'"/>
567 <doc:pi name="dbhtml_list-width" xmlns="">
568 <refpurpose>Specifies the width of a variablelist or simplelist</refpurpose>
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>
575 <synopsis><tag class="xmlpi">dbhtml list-width="<replaceable>width</replaceable>"</tag></synopsis>
579 <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
581 <para>Specifies the output width (including units)</para>
587 <para><link role="tcg"
588 xlink:href="Variablelists.html#VarListFormatting"
589 >Variable list formatting in HTML</link></para>
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'"/>
600 <doc:pi name="dbhtml_row-height" xmlns="">
601 <refpurpose>Specifies the height for a CALS table row</refpurpose>
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>
607 <synopsis><tag class="xmlpi">dbhtml row-height="<replaceable>height</replaceable>"</tag></synopsis>
611 <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
613 <para>Specifies the row height (including units)</para>
619 <para><link role="tcg"
620 xlink:href="RowHeight.html"
621 >Row height</link></para>
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'"/>
632 <doc:pi name="dbhtml_start" xmlns="">
633 <refpurpose>(obsolete) Sets the starting number on an ordered list</refpurpose>
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>
643 <synopsis><tag class="xmlpi">dbhtml start="<replaceable>character</replaceable>"</tag></synopsis>
647 <varlistentry><term>start="<replaceable>character</replaceable>"</term>
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>
657 <para><link role="tcg"
658 xlink:href="Orderedlists.html#ListStartNum"
659 >List starting number</link></para>
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'"/>
670 <doc:pi name="dbhtml_stop-chunking" xmlns="">
671 <refpurpose>Do not chunk any descendants of this element.</refpurpose>
673 <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:
674 <programlisting><![CDATA[<section>
675 <title>Configuring pencil</title>
676 <?dbhtml stop-chunking?>
680 </section>]]></programlisting>
684 <synopsis><tag class="xmlpi">dbhtml stop-chunking</tag></synopsis>
687 <para><link role="tcg"
688 xlink:href="Chunking.html"
689 >Chunking into multiple HTML files</link></para>
692 <!-- The code that handles the stop-chunking pi is in chunk-common.xsl -->
694 <doc:pi name="dbhtml_table-summary" xmlns="">
695 <refpurpose>Specifies summary for CALS table, variablelist, segmentedlist, or qandaset output</refpurpose>
697 <para>Use the <tag class="xmlpi">dbhtml table-summary</tag> PI as a child of
698 a CALS <tag>table</tag>, <tag>variablelist</tag>,
699 <tag>segmentedlist</tag>, or <tag>qandaset</tag> to specify
700 the text for the HTML <literal>summary</literal> attribute
701 in the output HTML table.</para>
704 <synopsis><tag class="xmlpi">dbhtml table-summary="<replaceable>text</replaceable>"</tag></synopsis>
708 <varlistentry><term>table-summary="<replaceable>text</replaceable>"</term>
710 <para>Specifies the summary text (zero or more characters)</para>
716 <para><link role="tcg"
717 xlink:href="Variablelists.html#VarListFormatting"
718 >Variable list formatting in HTML</link>,
719 <link role="tcg" xlink:href="TableSummary.html"
720 >Table summary text</link></para>
723 <xsl:template name="pi.dbhtml_table-summary">
724 <xsl:param name="node" select="."/>
725 <xsl:call-template name="dbhtml-attribute">
726 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
727 <xsl:with-param name="attribute" select="'table-summary'"/>
731 <doc:pi name="dbhtml_table-width" xmlns="">
732 <refpurpose>Specifies the width for a CALS table</refpurpose>
734 <para>Use the <tag class="xmlpi">dbhtml table-width</tag> PI as a child of a
735 CALS <tag>table</tag> to specify the width of the table in
739 <synopsis><tag class="xmlpi">dbhtml table-width="<replaceable>width</replaceable>"</tag></synopsis>
743 <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
745 <para>Specifies the table width (including units or as a percentage)</para>
750 <refsee role="params">
751 <para><parameter>default.table.width</parameter></para>
754 <para><link role="tcg"
755 xlink:href="Tables.html#TableWidth"
756 >Table width</link></para>
759 <xsl:template name="pi.dbhtml_table-width">
760 <xsl:param name="node" select="."/>
761 <xsl:call-template name="dbhtml-attribute">
762 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
763 <xsl:with-param name="attribute" select="'table-width'"/>
767 <doc:pi name="dbhtml_term-presentation" xmlns="">
768 <refpurpose>Sets character formatting for terms in a variablelist</refpurpose>
770 <para>Use the <tag class="xmlpi">dbhtml term-presentation</tag> PI as a child
771 of a <tag>variablelist</tag> to set character formatting for
772 the <tag>term</tag> output of the list.</para>
775 <synopsis><tag class="xmlpi">dbhtml term-presentation="bold"|"italic"|"bold-italic"</tag></synopsis>
779 <varlistentry><term>term-presentation="<replaceable>bold</replaceable>"</term>
781 <para>Specifies that terms are displayed in bold</para>
784 <varlistentry><term>term-presentation="<replaceable>italic</replaceable>"</term>
786 <para>Specifies that terms are displayed in italic</para>
789 <varlistentry><term>term-presentation="<replaceable>bold-italic</replaceable>"</term>
791 <para>Specifies that terms are displayed in bold-italic</para>
797 <para><link role="tcg"
798 xlink:href="Variablelists.html#VarListFormatting"
799 >Variable list formatting in HTML</link></para>
802 <xsl:template name="pi.dbhtml_term-presentation">
803 <xsl:param name="node" select="."/>
804 <xsl:call-template name="dbhtml-attribute">
805 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
806 <xsl:with-param name="attribute" select="'term-presentation'"/>
810 <doc:pi name="dbhtml_term-separator" xmlns="">
811 <refpurpose>Specifies separator text among terms in a varlistentry</refpurpose>
813 <para>Use the <tag class="xmlpi">dbhtml term-separator</tag> PI as a child
814 of a <tag>variablelist</tag> to specify the separator text
815 among <tag>term</tag> instances.</para>
818 <synopsis><tag class="xmlpi">dbhtml term-separator="<replaceable>text</replaceable>"</tag></synopsis>
822 <varlistentry><term>term-separator="<replaceable>text</replaceable>"</term>
824 <para>Specifies the text (zero or more characters)</para>
829 <refsee role="params">
830 <para><parameter>variablelist.term.separator</parameter></para>
833 <para><link role="tcg"
834 xlink:href="Variablelists.html#VarListFormatting"
835 >Variable list formatting in HTML</link></para>
838 <xsl:template name="pi.dbhtml_term-separator">
839 <xsl:param name="node" select="."/>
840 <xsl:call-template name="dbhtml-attribute">
841 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
842 <xsl:with-param name="attribute" select="'term-separator'"/>
846 <doc:pi name="dbhtml_term-width" xmlns="">
847 <refpurpose>Specifies the term width for a variablelist</refpurpose>
849 <para>Use the <tag class="xmlpi">dbhtml term-width</tag> PI as a child of a
850 <tag>variablelist</tag> to specify the width for
851 <tag>term</tag> output.</para>
854 <synopsis><tag class="xmlpi">dbhtml term-width="<replaceable>width</replaceable>"</tag></synopsis>
858 <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
860 <para>Specifies the term width (including units)</para>
866 <para><link role="tcg"
867 xlink:href="Variablelists.html#VarListFormatting"
868 >Variable list formatting in HTML</link></para>
871 <xsl:template name="pi.dbhtml_term-width">
872 <xsl:param name="node" select="."/>
873 <xsl:call-template name="dbhtml-attribute">
874 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
875 <xsl:with-param name="attribute" select="'term-width'"/>
879 <doc:pi name="dbhtml_toc" xmlns="">
880 <refpurpose>Specifies whether a TOC should be generated for a qandaset</refpurpose>
882 <para>Use the <tag class="xmlpi">dbhtml toc</tag> PI as a child of a
883 <tag>qandaset</tag> to specify whether a table of contents
884 (TOC) is generated for the <tag>qandaset</tag>.</para>
887 <synopsis><tag class="xmlpi">dbhtml toc="0"|"1"</tag></synopsis>
891 <varlistentry><term>toc="0"</term>
893 <para>If zero, no TOC is generated</para>
896 <varlistentry><term>toc="1"</term>
898 <para>If <code>1</code> (or any non-zero value),
899 a TOC is generated</para>
905 <para><link role="tcg"
906 xlink:href="QandAtoc.html"
907 >Q and A list of questions</link>,
909 xlink:href="QandAformat.html"
910 >Q and A formatting</link></para>
913 <xsl:template name="pi.dbhtml_toc">
914 <xsl:param name="node" select="."/>
915 <xsl:call-template name="dbhtml-attribute">
916 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
917 <xsl:with-param name="attribute" select="'toc'"/>
921 <doc:pi name="dbcmdlist" xmlns="">
922 <refpurpose>Generates a hyperlinked list of commands</refpurpose>
924 <para>Use the <tag class="xmlpi">dbcmdlist</tag> PI as the child of any
925 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
926 <tag>cmdsynopsis</tag> instances; a hyperlinked navigational
927 “command list” will be generated at the top of output for that
928 element, enabling users to quickly jump
929 to each command synopsis.</para>
932 <synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis>
935 <para>[No parameters]</para>
938 <xsl:template name="pi.dbcmdlist">
939 <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/>
940 <xsl:if test="count($cmdsynopses)<1">
941 <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text>
945 <xsl:call-template name="process.cmdsynopsis.list">
946 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
951 <doc:pi name="dbfunclist" xmlns="">
952 <refpurpose>Generates a hyperlinked list of functions</refpurpose>
954 <para>Use the <tag class="xmlpi">dbfunclist</tag> PI as the child of any
955 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
956 <tag>funcsynopsis</tag> instances; a hyperlinked
957 navigational “function list” will be generated at the top of
958 output for that element, enabling users to quickly
959 jump to to each function synopsis.</para>
962 <synopsis><tag class="xmlpi">dbfunclist</tag></synopsis>
965 <para>[No parameters]</para>
968 <xsl:template name="pi.dbfunclist">
969 <xsl:variable name="funcsynopses" select="..//funcsynopsis"/>
970 <xsl:if test="count($funcsynopses)<1">
971 <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text>
975 <xsl:call-template name="process.funcsynopsis.list">
976 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
981 <doc:pi name="dbhtml-include_href" xmlns="">
982 <refpurpose>Copies an external well-formed HTML/XML file into current doc</refpurpose>
984 <para>Use the <tag class="xmlpi">dbhtml-include href</tag> PI anywhere in a
985 document to cause the contents of the file referenced by the
986 <code>href</code> pseudo-attribute to be copied/inserted “as
987 is” into your HTML output at the point in document order
988 where the PI occurs in the source.</para>
990 <para>The referenced file may contain plain text (as long as
991 it is “wrapped” in an <tag>html</tag> element — see the
992 note below) or markup in any arbitrary vocabulary,
993 including HTML — but it must conform to XML
994 well-formedness constraints (because the feature in XSLT
995 1.0 for opening external files, the
996 <function>document()</function> function, can only handle
997 files that meet XML well-formedness constraints).</para>
998 <para>Among other things, XML well-formedness constraints
999 require a document to have <emphasis>a single root
1000 element</emphasis>. So if the content you want to
1001 include is plain text or is markup that does
1002 <emphasis>not</emphasis> have a single root element,
1003 <emphasis role="strong">wrap the content in an
1004 <tag>html</tag> element</emphasis>. The stylesheets will
1005 strip out that surrounding <tag>html</tag> “wrapper” when
1006 they find it, leaving just the content you want to
1011 <synopsis><tag class="xmlpi">dbhtml-include href="<replaceable>URI</replaceable>"</tag></synopsis>
1015 <varlistentry><term>href="<replaceable>URI</replaceable>"</term>
1017 <para>Specifies the URI for the file to include; the URI
1018 can be, for example, a remote <literal>http:</literal>
1019 URI, or a local filesystem <literal>file:</literal>
1025 <refsee role="params">
1026 <para><parameter>textinsert.extension</parameter></para>
1029 <para><link role="tcg"
1030 xlink:href="InsertExtHtml.html"
1031 >Inserting external HTML code</link>,
1033 xlink:href="ExternalCode.html"
1034 >External code files</link></para>
1037 <xsl:template name="pi.dbhtml-include">
1038 <xsl:param name="href">
1039 <xsl:call-template name="dbhtml-attribute">
1040 <xsl:with-param name="pis" select="."/>
1041 <xsl:with-param name="attribute">href</xsl:with-param>
1042 </xsl:call-template>
1045 <xsl:when test="$href != ''">
1046 <xsl:variable name="content" select="document($href,/)"/>
1048 <xsl:when test="$content/*">
1050 <xsl:when test="$content/*[1][self::html]">
1051 <!-- include just the children of html wrapper -->
1052 <xsl:copy-of select="$content/*[1]/node()"/>
1055 <xsl:copy-of select="$content"/>
1061 <xsl:text>ERROR: dbhtml-include processing instruction </xsl:text>
1062 <xsl:text>href has no content.</xsl:text>
1069 <xsl:text>ERROR: dbhtml-include processing instruction has </xsl:text>
1070 <xsl:text>missing or empty href value.</xsl:text>
1076 <!-- There are two templates matching this PI in htmlhelp-common.xsl -->
1077 <doc:pi name="dbhh" xmlns="">
1078 <refpurpose>Sets topic name and topic id for context-sensitive HTML Help</refpurpose>
1080 <para>Use the <tag class="xmlpi">dbhh</tag> PI as a child of components
1081 that should be used as targets for context-sensitive help requests.</para>
1084 <synopsis><tag class="xmlpi">dbhh topicname="<replaceable>name</replaceable>" topicid="<replaceable>id</replaceable>"</tag></synopsis>
1088 <varlistentry><term>topicname="<replaceable>name</replaceable>"</term>
1090 <para>Specifies a unique string constant that identifies a help topic</para>
1093 <varlistentry><term>topicid="<replaceable>id</replaceable>"</term>
1095 <para>Specifies a unique integer value for the <literal>topicname</literal> string</para>
1101 <para><link role="tcg"
1102 xlink:href="HtmlHelp.html#HHContextHelp"
1103 >Context-sensitive help</link></para>
1107 <!-- ==================================================================== -->
1109 <xsl:template name="dbhtml-attribute">
1110 <!-- * dbhtml-attribute is an interal utility template for retrieving -->
1111 <!-- * pseudo-attributes/parameters from PIs -->
1112 <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
1113 <xsl:param name="attribute">filename</xsl:param>
1114 <xsl:call-template name="pi-attribute">
1115 <xsl:with-param name="pis" select="$pis"/>
1116 <xsl:with-param name="attribute" select="$attribute"/>
1117 </xsl:call-template>
1120 <!-- ==================================================================== -->
1122 <xsl:template match="processing-instruction()">
1125 <xsl:template match="processing-instruction('dbhtml')">
1129 <!-- ==================================================================== -->
1131 <xsl:template match="processing-instruction('dbcmdlist')">
1132 <xsl:call-template name="pi.dbcmdlist"/>
1134 <xsl:template name="process.cmdsynopsis.list">
1135 <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
1136 <xsl:param name="count" select="1"/>
1139 <xsl:when test="$count>count($cmdsynopses)"></xsl:when>
1141 <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
1145 <xsl:attribute name="href">
1146 <xsl:text>#</xsl:text>
1147 <xsl:call-template name="object.id">
1148 <xsl:with-param name="object" select="$cmdsyn"/>
1149 </xsl:call-template>
1153 <xsl:when test="$cmdsyn/@xreflabel">
1154 <xsl:call-template name="xref.xreflabel">
1155 <xsl:with-param name="target" select="$cmdsyn"/>
1156 </xsl:call-template>
1159 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1160 <xsl:with-param name="target" select="$cmdsyn"/>
1161 </xsl:apply-templates>
1167 <xsl:call-template name="process.cmdsynopsis.list">
1168 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
1169 <xsl:with-param name="count" select="$count+1"/>
1170 </xsl:call-template>
1175 <!-- ==================================================================== -->
1177 <xsl:template match="processing-instruction('dbfunclist')">
1178 <xsl:call-template name="pi.dbfunclist"/>
1180 <xsl:template name="process.funcsynopsis.list">
1181 <xsl:param name="funcsynopses"/><!-- empty node list by default -->
1182 <xsl:param name="count" select="1"/>
1185 <xsl:when test="$count>count($funcsynopses)"></xsl:when>
1187 <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
1191 <xsl:attribute name="href">
1192 <xsl:text>#</xsl:text>
1193 <xsl:call-template name="object.id">
1194 <xsl:with-param name="object" select="$cmdsyn"/>
1195 </xsl:call-template>
1199 <xsl:when test="$cmdsyn/@xreflabel">
1200 <xsl:call-template name="xref.xreflabel">
1201 <xsl:with-param name="target" select="$cmdsyn"/>
1202 </xsl:call-template>
1205 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1206 <xsl:with-param name="target" select="$cmdsyn"/>
1207 </xsl:apply-templates>
1213 <xsl:call-template name="process.funcsynopsis.list">
1214 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
1215 <xsl:with-param name="count" select="$count+1"/>
1216 </xsl:call-template>
1221 <!-- ==================================================================== -->
1223 <xsl:template match="processing-instruction('dbhtml-include')">
1224 <xsl:call-template name="pi.dbhtml-include"/>
1227 <!-- ==================================================================== -->
1229 <xsl:template name="dbhtml-dir">
1230 <xsl:param name="context" select="."/>
1231 <!-- directories are now inherited from previous levels -->
1232 <xsl:variable name="ppath">
1233 <xsl:if test="$context/parent::*">
1234 <xsl:call-template name="dbhtml-dir">
1235 <xsl:with-param name="context" select="$context/parent::*"/>
1236 </xsl:call-template>
1239 <xsl:variable name="path">
1240 <xsl:call-template name="pi.dbhtml_dir">
1241 <xsl:with-param name="node" select="$context"/>
1242 </xsl:call-template>
1245 <xsl:when test="$path = ''">
1246 <xsl:if test="$ppath != ''">
1247 <xsl:value-of select="$ppath"/>
1251 <xsl:if test="$ppath != ''">
1252 <xsl:value-of select="$ppath"/>
1253 <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
1254 <xsl:text>/</xsl:text>
1257 <xsl:value-of select="$path"/>
1258 <xsl:text>/</xsl:text>