1 <?xml version="1.0" encoding="ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="doc" version="1.0">
6 <!-- ********************************************************************
7 $Id: pi.xsl 8394 2009-04-02 20:31:30Z mzjn $
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
14 ******************************************************************** -->
16 <doc:reference xmlns=""><info xmlns="http://www.w3.org/1999/xhtml"><title>HTML Processing Instruction Reference</title>
17 <releaseinfo role="meta">
18 $Id: pi.xsl 8394 2009-04-02 20:31:30Z mzjn $
21 <partintro xmlns="http://www.w3.org/1999/xhtml" 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.
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>
37 <!-- ==================================================================== -->
39 <doc:pi xmlns="" name="dbhtml_background-color">
40 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets background color for an image</refpurpose>
41 <refdescription xmlns="http://www.w3.org/1999/xhtml">
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
48 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
49 <synopsis><tag class="xmlpi">dbhtml background-color="<replaceable>color</replaceable>"</tag></synopsis>
51 <refparameter xmlns="http://www.w3.org/1999/xhtml">
53 <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
55 <para>An HTML color value</para>
60 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
61 <para><link role="tcg" xlink:href="BGcolor.html">Background color</link></para>
64 <xsl:template name="pi.dbhtml_background-color">
65 <xsl:param name="node" select="."/>
66 <xsl:call-template name="dbhtml-attribute">
67 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
68 <xsl:with-param name="attribute" select="'background-color'"/>
72 <doc:pi xmlns="" name="dbhtml_bgcolor">
73 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets background color on a CALS table row or table cell</refpurpose>
74 <refdescription xmlns="http://www.w3.org/1999/xhtml">
75 <para>Use the <tag class="xmlpi">dbhtml bgcolor</tag> PI as child of a CALS table row
76 or cell to set a background color for that table row or cell.</para>
78 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
79 <synopsis><tag class="xmlpi">dbhtml bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
81 <refparameter xmlns="http://www.w3.org/1999/xhtml">
83 <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
85 <para>An HTML color value</para>
90 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
91 <para><link role="tcg" xlink:href="BGtableColor.html#CellBGColor">Cell background color</link></para>
94 <xsl:template name="pi.dbhtml_bgcolor">
95 <xsl:param name="node" select="."/>
96 <xsl:call-template name="dbhtml-attribute">
97 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
98 <xsl:with-param name="attribute" select="'bgcolor'"/>
102 <doc:pi xmlns="" name="dbhtml_cellpadding">
103 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies cellpadding in CALS table or qandaset output</refpurpose>
104 <refdescription xmlns="http://www.w3.org/1999/xhtml">
105 <para>Use the <tag class="xmlpi">dbhtml cellpadding</tag> PI as a child of a
106 CALS <tag>table</tag> or <tag>qandaset</tag> to specify the value
107 for the HTML <literal>cellpadding</literal> attribute in the
108 output HTML table.</para>
110 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
111 <synopsis><tag class="xmlpi">dbhtml cellpadding="<replaceable>number</replaceable>"</tag></synopsis>
113 <refparameter xmlns="http://www.w3.org/1999/xhtml">
115 <varlistentry><term>cellpadding="<replaceable>number</replaceable>"</term>
117 <para>Specifies the cellpadding</para>
122 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
123 <para><parameter>html.cellpadding</parameter></para>
125 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
126 <para><link role="tcg" xlink:href="CellSpacing.html">Cell spacing and cell padding</link>,
127 <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
130 <xsl:template name="pi.dbhtml_cellpadding">
131 <xsl:param name="node" select="."/>
132 <xsl:call-template name="dbhtml-attribute">
133 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
134 <xsl:with-param name="attribute" select="'cellpadding'"/>
138 <doc:pi xmlns="" name="dbhtml_cellspacing">
139 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies cellspacing in CALS table or qandaset output</refpurpose>
140 <refdescription xmlns="http://www.w3.org/1999/xhtml">
141 <para>Use the <tag class="xmlpi">dbhtml cellspacing</tag> PI as a child of a
142 CALS <tag>table</tag> or <tag>qandaset</tag> to specify the value
143 for the HTML <literal>cellspacing</literal> attribute in the
144 output HTML table.</para>
146 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
147 <synopsis><tag class="xmlpi">dbhtml cellspacing="<replaceable>number</replaceable>"</tag></synopsis>
149 <refparameter xmlns="http://www.w3.org/1999/xhtml">
151 <varlistentry><term>cellspacing="<replaceable>number</replaceable>"</term>
153 <para>Specifies the cellspacing</para>
158 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
159 <para><parameter>html.cellspacing</parameter></para>
161 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
162 <para><link role="tcg" xlink:href="CellSpacing.html">Cell spacing and cell padding</link>,
163 <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
166 <xsl:template name="pi.dbhtml_cellspacing">
167 <xsl:param name="node" select="."/>
168 <xsl:call-template name="dbhtml-attribute">
169 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
170 <xsl:with-param name="attribute" select="'cellspacing'"/>
174 <doc:pi xmlns="" name="dbhtml_class">
175 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Set value of the class attribute for a CALS table row</refpurpose>
176 <refdescription xmlns="http://www.w3.org/1999/xhtml">
177 <para>Use the <tag class="xmlpi">dbhtml class</tag> PI as a child of a
178 <tag>row</tag> to specify a <literal>class</literal>
179 attribute and value in the HTML output for that row.</para>
181 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
182 <synopsis><tag class="xmlpi">dbhtml class="<replaceable>name</replaceable>"</tag></synopsis>
184 <refparameter xmlns="http://www.w3.org/1999/xhtml">
186 <varlistentry><term>class="<replaceable>name</replaceable>"</term>
188 <para>Specifies the class name</para>
193 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
194 <para><link role="tcg" xlink:href="CSSTableCells.html">Table styles in HTML output</link></para>
197 <xsl:template name="pi.dbhtml_class">
198 <xsl:param name="node" select="."/>
199 <xsl:call-template name="dbhtml-attribute">
200 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
201 <xsl:with-param name="attribute" select="'class'"/>
205 <doc:pi xmlns="" name="dbhtml_dir">
206 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a directory name in which to write files</refpurpose>
207 <refdescription xmlns="http://www.w3.org/1999/xhtml">
208 <para>When chunking output, use the <tag class="xmlpi">dbhtml dir</tag> PI
209 as a child of a chunk source to cause the output of that
210 chunk to be written to the specified directory; also, use it
211 as a child of a <tag>mediaobject</tag> to specify a
212 directory into which any long-description files for that
213 <tag>mediaobject</tag> will be written.</para>
215 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
216 <synopsis><tag class="xmlpi">dbhtml dir="<replaceable>path</replaceable>"</tag></synopsis>
218 <refparameter xmlns="http://www.w3.org/1999/xhtml">
220 <varlistentry><term>dir="<replaceable>path</replaceable>"</term>
222 <para>Specifies the pathname for the directory</para>
227 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
228 <para><parameter>base.dir</parameter></para>
230 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
231 <para><link role="tcg" xlink:href="Chunking.html#dbhtmlDirPI">dbhtml dir processing instruction</link></para>
234 <xsl:template name="pi.dbhtml_dir">
235 <xsl:param name="node" select="."/>
236 <xsl:call-template name="dbhtml-attribute">
237 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
238 <xsl:with-param name="attribute" select="'dir'"/>
242 <doc:pi xmlns="" name="dbhtml_filename">
243 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a filename for a chunk</refpurpose>
244 <refdescription xmlns="http://www.w3.org/1999/xhtml">
245 <para>When chunking output, use the <tag class="xmlpi">dbhtml filename</tag>
246 PI as a child of a chunk source to specify a filename for
247 the output file for that chunk.</para>
249 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
250 <synopsis><tag class="xmlpi">dbhtml filename="<replaceable>filename</replaceable>"</tag></synopsis>
252 <refparameter xmlns="http://www.w3.org/1999/xhtml">
254 <varlistentry><term>filename="<replaceable>path</replaceable>"</term>
256 <para>Specifies the filename for the file</para>
261 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
262 <para><parameter>use.id.as.filename</parameter></para>
264 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
265 <para><link role="tcg" xlink:href="Chunking.html#DbhtmlFilenames">dbhtml filenames</link></para>
268 <xsl:template name="pi.dbhtml_filename">
269 <xsl:param name="node" select="."/>
270 <xsl:call-template name="dbhtml-attribute">
271 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
272 <xsl:with-param name="attribute" select="'filename'"/>
276 <doc:pi xmlns="" name="dbhtml_funcsynopsis-style">
277 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies presentation style for a funcsynopsis</refpurpose>
278 <refdescription xmlns="http://www.w3.org/1999/xhtml">
279 <para>Use the <tag class="xmlpi">dbhtml funcsynopsis-style</tag> PI as a child of
280 a <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
281 to control the presentation style for output of all
282 <tag>funcprototype</tag> instances within that funcsynopsis.</para>
284 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
285 <synopsis><tag class="xmlpi">dbhtml funcsynopsis-style="kr"|"ansi"</tag></synopsis>
287 <refparameter xmlns="http://www.w3.org/1999/xhtml">
289 <varlistentry><term>funcsynopsis-style="kr"</term>
291 <para>Displays <tag>funcprototype</tag> output in K&R style</para>
294 <varlistentry><term>funcsynopsis-style="ansi"</term>
296 <para>Displays <tag>funcprototype</tag> output in ANSI style</para>
301 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
302 <para><parameter>funcsynopsis.style</parameter></para>
305 <xsl:template name="pi.dbhtml_funcsynopsis-style">
306 <xsl:param name="node" select="."/>
307 <xsl:call-template name="dbhtml-attribute">
308 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
309 <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
313 <doc:pi xmlns="" name="dbhtml_img.src.path">
314 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a path to the location of an image file</refpurpose>
315 <refdescription xmlns="http://www.w3.org/1999/xhtml">
316 <para>Use the <tag class="xmlpi">dbhtml img.src.path</tag> PI before or
317 after an image (<tag>graphic</tag>,
318 <tag>inlinegraphic</tag>, <tag>imagedata</tag>, or
319 <tag>videodata</tag> element) as a sibling to the element,
320 to specify a path to the location of the image; in HTML
321 output, the value specified for the
322 <code>img.src.path</code> attribute is prepended to the
325 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
326 <synopsis><tag class="xmlpi">dbhtml img.src.path="<replaceable>path</replaceable>"</tag></synopsis>
328 <refparameter xmlns="http://www.w3.org/1999/xhtml">
330 <varlistentry><term>img.src.path="<replaceable>path</replaceable>"</term>
332 <para>Specifies the pathname to prepend to the name of the image file</para>
337 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
338 <para><parameter>img.src.path</parameter></para>
340 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
341 <para><link role="tcg" xlink:href="GraphicsLocations.html#UsingFileref">Using fileref</link></para>
344 <xsl:template name="pi.dbhtml_img.src.path">
345 <xsl:param name="node" select="."/>
346 <xsl:call-template name="dbhtml-attribute">
347 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
348 <xsl:with-param name="attribute" select="'img.src.path'"/>
352 <doc:pi xmlns="" name="dbhtml_label-width">
353 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the label width for a qandaset</refpurpose>
354 <refdescription xmlns="http://www.w3.org/1999/xhtml">
355 <para>Use the <tag class="xmlpi">dbhtml label-width</tag> PI as a child of a
356 <tag>qandaset</tag> to specify the width of labels.</para>
358 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
359 <synopsis><tag class="xmlpi">dbhtml label-width="<replaceable>width</replaceable>"</tag></synopsis>
361 <refparameter xmlns="http://www.w3.org/1999/xhtml">
363 <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
365 <para>Specifies the label width (including units)</para>
370 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
371 <para><link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
374 <xsl:template name="pi.dbhtml_label-width">
375 <xsl:param name="node" select="."/>
376 <xsl:call-template name="dbhtml-attribute">
377 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
378 <xsl:with-param name="attribute" select="'label-width'"/>
382 <doc:pi xmlns="" name="dbhtml_linenumbering.everyNth">
383 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies interval for line numbers in verbatims</refpurpose>
384 <refdescription xmlns="http://www.w3.org/1999/xhtml">
385 <para>Use the <tag class="xmlpi">dbhtml linenumbering.everyNth</tag> PI as a child
386 of a “verbatim” element – <tag>programlisting</tag>,
387 <tag>screen</tag>, <tag>synopsis</tag> — to specify
388 the interval at which lines are numbered.</para>
390 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
391 <synopsis><tag class="xmlpi">dbhtml linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
393 <refparameter xmlns="http://www.w3.org/1999/xhtml">
395 <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
397 <para>Specifies numbering interval; a number is output
398 before every <replaceable>N</replaceable>th line</para>
403 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
404 <para><parameter>linenumbering.everyNth</parameter></para>
406 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
407 <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
410 <xsl:template name="pi.dbhtml_linenumbering.everyNth">
411 <xsl:param name="node" select="."/>
412 <xsl:call-template name="dbhtml-attribute">
413 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
414 <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
418 <doc:pi xmlns="" name="dbhtml_linenumbering.separator">
419 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies separator text for line numbers in verbatims</refpurpose>
420 <refdescription xmlns="http://www.w3.org/1999/xhtml">
421 <para>Use the <tag class="xmlpi">dbhtml linenumbering.separator</tag> PI as a child
422 of a “verbatim” element – <tag>programlisting</tag>,
423 <tag>screen</tag>, <tag>synopsis</tag> — to specify
424 the separator text output between the line numbers and content.</para>
426 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
427 <synopsis><tag class="xmlpi">dbhtml linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
429 <refparameter xmlns="http://www.w3.org/1999/xhtml">
431 <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
433 <para>Specifies the text (zero or more characters)</para>
438 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
439 <para><parameter>linenumbering.separator</parameter></para>
441 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
442 <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
445 <xsl:template name="pi.dbhtml_linenumbering.separator">
446 <xsl:param name="node" select="."/>
447 <xsl:call-template name="dbhtml-attribute">
448 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
449 <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
453 <doc:pi xmlns="" name="dbhtml_linenumbering.width">
454 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies width for line numbers in verbatims</refpurpose>
455 <refdescription xmlns="http://www.w3.org/1999/xhtml">
456 <para>Use the <tag class="xmlpi">dbhtml linenumbering.width</tag> PI as a child
457 of a “verbatim” element – <tag>programlisting</tag>,
458 <tag>screen</tag>, <tag>synopsis</tag> — to specify
459 the width set aside for line numbers.</para>
461 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
462 <synopsis><tag class="xmlpi">dbhtml linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
464 <refparameter xmlns="http://www.w3.org/1999/xhtml">
466 <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
468 <para>Specifies the width (inluding units)</para>
473 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
474 <para><parameter>linenumbering.width</parameter></para>
476 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
477 <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
480 <xsl:template name="pi.dbhtml_linenumbering.width">
481 <xsl:param name="node" select="."/>
482 <xsl:call-template name="dbhtml-attribute">
483 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
484 <xsl:with-param name="attribute" select="'linenumbering.width'"/>
488 <doc:pi xmlns="" name="dbhtml_list-presentation">
489 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies presentation style for a variablelist or
490 segmentedlist</refpurpose>
491 <refdescription xmlns="http://www.w3.org/1999/xhtml">
492 <para>Use the <tag class="xmlpi">dbhtml list-presentation</tag> PI as a child of
493 a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
494 control the presentation style for the list (to cause it, for
495 example, to be displayed as a table).</para>
497 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
498 <synopsis><tag class="xmlpi">dbhtml list-presentation="list"|"table"</tag></synopsis>
500 <refparameter xmlns="http://www.w3.org/1999/xhtml">
502 <varlistentry><term>list-presentation="list"</term>
504 <para>Displays the list as a list</para>
507 <varlistentry><term>list-presentation="table"</term>
509 <para>Displays the list as a table</para>
514 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
517 <para><parameter>variablelist.as.table</parameter></para>
520 <para><parameter>segmentedlist.as.table</parameter></para>
524 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
525 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
528 <xsl:template name="pi.dbhtml_list-presentation">
529 <xsl:param name="node" select="."/>
530 <xsl:call-template name="dbhtml-attribute">
531 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
532 <xsl:with-param name="attribute" select="'list-presentation'"/>
536 <doc:pi xmlns="" name="dbhtml_list-width">
537 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the width of a variablelist or simplelist</refpurpose>
538 <refdescription xmlns="http://www.w3.org/1999/xhtml">
539 <para>Use the <tag class="xmlpi">dbhtml list-width</tag> PI as a child of a
540 <tag>variablelist</tag> or a <tag>simplelist</tag> presented
541 as a table, to specify the output width.</para>
543 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
544 <synopsis><tag class="xmlpi">dbhtml list-width="<replaceable>width</replaceable>"</tag></synopsis>
546 <refparameter xmlns="http://www.w3.org/1999/xhtml">
548 <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
550 <para>Specifies the output width (including units)</para>
555 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
556 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
559 <xsl:template name="pi.dbhtml_list-width">
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-width'"/>
567 <doc:pi xmlns="" name="dbhtml_row-height">
568 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the height for a CALS table row</refpurpose>
569 <refdescription xmlns="http://www.w3.org/1999/xhtml">
570 <para>Use the <tag class="xmlpi">dbhtml row-height</tag> PI as a child of a
571 <tag>row</tag> to specify the height of the row.</para>
573 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
574 <synopsis><tag class="xmlpi">dbhtml row-height="<replaceable>height</replaceable>"</tag></synopsis>
576 <refparameter xmlns="http://www.w3.org/1999/xhtml">
578 <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
580 <para>Specifies the row height (including units)</para>
585 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
586 <para><link role="tcg" xlink:href="RowHeight.html">Row height</link></para>
589 <xsl:template name="pi.dbhtml_row-height">
590 <xsl:param name="node" select="."/>
591 <xsl:call-template name="dbhtml-attribute">
592 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
593 <xsl:with-param name="attribute" select="'row-height'"/>
597 <doc:pi xmlns="" name="dbhtml_start">
598 <refpurpose xmlns="http://www.w3.org/1999/xhtml">(obsolete) Sets the starting number on an ordered list</refpurpose>
599 <refdescription xmlns="http://www.w3.org/1999/xhtml">
600 <para><emphasis>This PI is obsolete</emphasis>. The intent of
601 this PI was to provide a means for setting a specific starting
602 number for an ordered list. Instead of this PI, set a value
603 for the <literal>override</literal> attribute on the first
604 <tag>listitem</tag> in the list; that will have the same
605 effect as what this PI was intended for.</para>
607 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
608 <synopsis><tag class="xmlpi">dbhtml start="<replaceable>character</replaceable>"</tag></synopsis>
610 <refparameter xmlns="http://www.w3.org/1999/xhtml">
612 <varlistentry><term>start="<replaceable>character</replaceable>"</term>
614 <para>Specifies the character to use as the starting
615 number; use 0-9, a-z, A-Z, or lowercase or uppercase
616 Roman numerals</para>
621 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
622 <para><link role="tcg" xlink:href="Orderedlists.html#ListStartNum">List starting number</link></para>
625 <xsl:template name="pi.dbhtml_start">
626 <xsl:param name="node" select="."/>
627 <xsl:call-template name="pi-attribute">
628 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
629 <xsl:with-param name="attribute" select="'start'"/>
633 <doc:pi xmlns="" name="dbhtml_stop-chunking">
634 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Do not chunk any descendants of this element.</refpurpose>
635 <refdescription xmlns="http://www.w3.org/1999/xhtml">
636 <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:
637 <programlisting><section>
638 <title>Configuring pencil</title>
639 <?dbhtml stop-chunking?>
643 </section></programlisting>
646 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
647 <synopsis><tag class="xmlpi">dbhtml stop-chunking</tag></synopsis>
649 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
650 <para><link role="tcg" xlink:href="Chunking.html">Chunking into multiple HTML files</link></para>
653 <!-- The code that handles the stop-chunking pi is in chunk-common.xsl -->
655 <doc:pi xmlns="" name="dbhtml_table-summary">
656 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies summary for CALS table, variablelist, segmentedlist, or qandaset output</refpurpose>
657 <refdescription xmlns="http://www.w3.org/1999/xhtml">
658 <para>Use the <tag class="xmlpi">dbhtml table-summary</tag> PI as a child of
659 a CALS <tag>table</tag>, <tag>variablelist</tag>,
660 <tag>segmentedlist</tag>, or <tag>qandaset</tag> to specify
661 the text for the HTML <literal>summary</literal> attribute
662 in the output HTML table.</para>
664 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
665 <synopsis><tag class="xmlpi">dbhtml table-summary="<replaceable>text</replaceable>"</tag></synopsis>
667 <refparameter xmlns="http://www.w3.org/1999/xhtml">
669 <varlistentry><term>table-summary="<replaceable>text</replaceable>"</term>
671 <para>Specifies the summary text (zero or more characters)</para>
676 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
677 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link>,
678 <link role="tcg" xlink:href="TableSummary.html">Table summary text</link></para>
681 <xsl:template name="pi.dbhtml_table-summary">
682 <xsl:param name="node" select="."/>
683 <xsl:call-template name="dbhtml-attribute">
684 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
685 <xsl:with-param name="attribute" select="'table-summary'"/>
689 <doc:pi xmlns="" name="dbhtml_table-width">
690 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the width for a CALS table</refpurpose>
691 <refdescription xmlns="http://www.w3.org/1999/xhtml">
692 <para>Use the <tag class="xmlpi">dbhtml table-width</tag> PI as a child of a
693 CALS <tag>table</tag> to specify the width of the table in
696 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
697 <synopsis><tag class="xmlpi">dbhtml table-width="<replaceable>width</replaceable>"</tag></synopsis>
699 <refparameter xmlns="http://www.w3.org/1999/xhtml">
701 <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
703 <para>Specifies the table width (including units or as a percentage)</para>
708 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
709 <para><parameter>default.table.width</parameter></para>
711 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
712 <para><link role="tcg" xlink:href="Tables.html#TableWidth">Table width</link></para>
715 <xsl:template name="pi.dbhtml_table-width">
716 <xsl:param name="node" select="."/>
717 <xsl:call-template name="dbhtml-attribute">
718 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
719 <xsl:with-param name="attribute" select="'table-width'"/>
723 <doc:pi xmlns="" name="dbhtml_term-presentation">
724 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets character formatting for terms in a variablelist</refpurpose>
725 <refdescription xmlns="http://www.w3.org/1999/xhtml">
726 <para>Use the <tag class="xmlpi">dbhtml term-presentation</tag> PI as a child
727 of a <tag>variablelist</tag> to set character formatting for
728 the <tag>term</tag> output of the list.</para>
730 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
731 <synopsis><tag class="xmlpi">dbhtml term-presentation="bold"|"italic"|"bold-italic"</tag></synopsis>
733 <refparameter xmlns="http://www.w3.org/1999/xhtml">
735 <varlistentry><term>term-presentation="<replaceable>bold</replaceable>"</term>
737 <para>Specifies that terms are displayed in bold</para>
740 <varlistentry><term>term-presentation="<replaceable>italic</replaceable>"</term>
742 <para>Specifies that terms are displayed in italic</para>
745 <varlistentry><term>term-presentation="<replaceable>bold-italic</replaceable>"</term>
747 <para>Specifies that terms are displayed in bold-italic</para>
752 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
753 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
756 <xsl:template name="pi.dbhtml_term-presentation">
757 <xsl:param name="node" select="."/>
758 <xsl:call-template name="dbhtml-attribute">
759 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
760 <xsl:with-param name="attribute" select="'term-presentation'"/>
764 <doc:pi xmlns="" name="dbhtml_term-separator">
765 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies separator text among terms in a varlistentry</refpurpose>
766 <refdescription xmlns="http://www.w3.org/1999/xhtml">
767 <para>Use the <tag class="xmlpi">dbhtml term-separator</tag> PI as a child
768 of a <tag>variablelist</tag> to specify the separator text
769 among <tag>term</tag> instances.</para>
771 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
772 <synopsis><tag class="xmlpi">dbhtml term-separator="<replaceable>text</replaceable>"</tag></synopsis>
774 <refparameter xmlns="http://www.w3.org/1999/xhtml">
776 <varlistentry><term>term-separator="<replaceable>text</replaceable>"</term>
778 <para>Specifies the text (zero or more characters)</para>
783 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
784 <para><parameter>variablelist.term.separator</parameter></para>
786 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
787 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
790 <xsl:template name="pi.dbhtml_term-separator">
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="'term-separator'"/>
798 <doc:pi xmlns="" name="dbhtml_term-width">
799 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the term width for a variablelist</refpurpose>
800 <refdescription xmlns="http://www.w3.org/1999/xhtml">
801 <para>Use the <tag class="xmlpi">dbhtml term-width</tag> PI as a child of a
802 <tag>variablelist</tag> to specify the width for
803 <tag>term</tag> output.</para>
805 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
806 <synopsis><tag class="xmlpi">dbhtml term-width="<replaceable>width</replaceable>"</tag></synopsis>
808 <refparameter xmlns="http://www.w3.org/1999/xhtml">
810 <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
812 <para>Specifies the term width (including units)</para>
817 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
818 <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
821 <xsl:template name="pi.dbhtml_term-width">
822 <xsl:param name="node" select="."/>
823 <xsl:call-template name="dbhtml-attribute">
824 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
825 <xsl:with-param name="attribute" select="'term-width'"/>
829 <doc:pi xmlns="" name="dbhtml_toc">
830 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies whether a TOC should be generated for a qandaset</refpurpose>
831 <refdescription xmlns="http://www.w3.org/1999/xhtml">
832 <para>Use the <tag class="xmlpi">dbhtml toc</tag> PI as a child of a
833 <tag>qandaset</tag> to specify whether a table of contents
834 (TOC) is generated for the <tag>qandaset</tag>.</para>
836 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
837 <synopsis><tag class="xmlpi">dbhtml toc="0"|"1"</tag></synopsis>
839 <refparameter xmlns="http://www.w3.org/1999/xhtml">
841 <varlistentry><term>toc="0"</term>
843 <para>If zero, no TOC is generated</para>
846 <varlistentry><term>toc="1"</term>
848 <para>If <code>1</code> (or any non-zero value),
849 a TOC is generated</para>
854 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
855 <para><link role="tcg" xlink:href="QandAtoc.html">Q and A list of questions</link>,
856 <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
859 <xsl:template name="pi.dbhtml_toc">
860 <xsl:param name="node" select="."/>
861 <xsl:call-template name="dbhtml-attribute">
862 <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
863 <xsl:with-param name="attribute" select="'toc'"/>
867 <doc:pi xmlns="" name="dbcmdlist">
868 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Generates a hyperlinked list of commands</refpurpose>
869 <refdescription xmlns="http://www.w3.org/1999/xhtml">
870 <para>Use the <tag class="xmlpi">dbcmdlist</tag> PI as the child of any
871 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
872 <tag>cmdsynopsis</tag> instances; a hyperlinked navigational
873 “command list” will be generated at the top of output for that
874 element, enabling users to quickly jump
875 to each command synopsis.</para>
877 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
878 <synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis>
880 <refparameter xmlns="http://www.w3.org/1999/xhtml">
881 <para>[No parameters]</para>
884 <xsl:template name="pi.dbcmdlist">
885 <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/>
886 <xsl:if test="count($cmdsynopses)<1">
887 <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text>
891 <xsl:call-template name="process.cmdsynopsis.list">
892 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
897 <doc:pi xmlns="" name="dbfunclist">
898 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Generates a hyperlinked list of functions</refpurpose>
899 <refdescription xmlns="http://www.w3.org/1999/xhtml">
900 <para>Use the <tag class="xmlpi">dbfunclist</tag> PI as the child of any
901 element (for example, <tag>refsynopsisdiv</tag>) containing multiple
902 <tag>funcsynopsis</tag> instances; a hyperlinked
903 navigational “function list” will be generated at the top of
904 output for that element, enabling users to quickly
905 jump to to each function synopsis.</para>
907 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
908 <synopsis><tag class="xmlpi">dbfunclist</tag></synopsis>
910 <refparameter xmlns="http://www.w3.org/1999/xhtml">
911 <para>[No parameters]</para>
914 <xsl:template name="pi.dbfunclist">
915 <xsl:variable name="funcsynopses" select="..//funcsynopsis"/>
916 <xsl:if test="count($funcsynopses)<1">
917 <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text>
921 <xsl:call-template name="process.funcsynopsis.list">
922 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
927 <doc:pi xmlns="" name="dbhtml-include_href">
928 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Copies an external well-formed HTML/XML file into current doc</refpurpose>
929 <refdescription xmlns="http://www.w3.org/1999/xhtml">
930 <para>Use the <tag class="xmlpi">dbhtml-include href</tag> PI anywhere in a
931 document to cause the contents of the file referenced by the
932 <code>href</code> pseudo-attribute to be copied/inserted “as
933 is” into your HTML output at the point in document order
934 where the PI occurs in the source.</para>
936 <para>The referenced file may contain plain text (as long as
937 it is “wrapped” in an <tag>html</tag> element — see the
938 note below) or markup in any arbitrary vocabulary,
939 including HTML — but it must conform to XML
940 well-formedness constraints (because the feature in XSLT
941 1.0 for opening external files, the
942 <function>document()</function> function, can only handle
943 files that meet XML well-formedness constraints).</para>
944 <para>Among other things, XML well-formedness constraints
945 require a document to have <emphasis>a single root
946 element</emphasis>. So if the content you want to
947 include is plain text or is markup that does
948 <emphasis>not</emphasis> have a single root element,
949 <emphasis role="strong">wrap the content in an
950 <tag>html</tag> element</emphasis>. The stylesheets will
951 strip out that surrounding <tag>html</tag> “wrapper” when
952 they find it, leaving just the content you want to
956 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
957 <synopsis><tag class="xmlpi">dbhtml-include href="<replaceable>URI</replaceable>"</tag></synopsis>
959 <refparameter xmlns="http://www.w3.org/1999/xhtml">
961 <varlistentry><term>href="<replaceable>URI</replaceable>"</term>
963 <para>Specifies the URI for the file to include; the URI
964 can be, for example, a remote <literal>http:</literal>
965 URI, or a local filesystem <literal>file:</literal>
971 <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
972 <para><parameter>textinsert.extension</parameter></para>
974 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
975 <para><link role="tcg" xlink:href="InsertExtHtml.html">Inserting external HTML code</link>,
976 <link role="tcg" xlink:href="ExternalCode.html">External code files</link></para>
979 <xsl:template name="pi.dbhtml-include">
980 <xsl:param name="href">
981 <xsl:call-template name="dbhtml-attribute">
982 <xsl:with-param name="pis" select="."/>
983 <xsl:with-param name="attribute">href</xsl:with-param>
987 <xsl:when test="$href != ''">
988 <xsl:variable name="content" select="document($href,/)"/>
990 <xsl:when test="$content/*">
992 <xsl:when test="$content/*[1][self::html]">
993 <!-- include just the children of html wrapper -->
994 <xsl:copy-of select="$content/*[1]/node()"/>
997 <xsl:copy-of select="$content"/>
1003 <xsl:text>ERROR: dbhtml-include processing instruction </xsl:text>
1004 <xsl:text>href has no content.</xsl:text>
1011 <xsl:text>ERROR: dbhtml-include processing instruction has </xsl:text>
1012 <xsl:text>missing or empty href value.</xsl:text>
1018 <!-- There are two templates matching this PI in htmlhelp-common.xsl -->
1019 <doc:pi xmlns="" name="dbhh">
1020 <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets topic name and topic id for context-sensitive HTML Help</refpurpose>
1021 <refdescription xmlns="http://www.w3.org/1999/xhtml">
1022 <para>Use the <tag class="xmlpi">dbhh</tag> PI as a child of components
1023 that should be used as targets for context-sensitive help requests.</para>
1025 <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
1026 <synopsis><tag class="xmlpi">dbhh topicname="<replaceable>name</replaceable>" topicid="<replaceable>id</replaceable>"</tag></synopsis>
1028 <refparameter xmlns="http://www.w3.org/1999/xhtml">
1030 <varlistentry><term>topicname="<replaceable>name</replaceable>"</term>
1032 <para>Specifies a unique string constant that identifies a help topic</para>
1035 <varlistentry><term>topicid="<replaceable>id</replaceable>"</term>
1037 <para>Specifies a unique integer value for the <literal>topicname</literal> string</para>
1042 <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
1043 <para><link role="tcg" xlink:href="HtmlHelp.html#HHContextHelp">Context-sensitive help</link></para>
1047 <!-- ==================================================================== -->
1049 <xsl:template name="dbhtml-attribute">
1050 <!-- * dbhtml-attribute is an interal utility template for retrieving -->
1051 <!-- * pseudo-attributes/parameters from PIs -->
1052 <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
1053 <xsl:param name="attribute">filename</xsl:param>
1054 <xsl:call-template name="pi-attribute">
1055 <xsl:with-param name="pis" select="$pis"/>
1056 <xsl:with-param name="attribute" select="$attribute"/>
1057 </xsl:call-template>
1060 <!-- ==================================================================== -->
1062 <xsl:template match="processing-instruction()">
1065 <xsl:template match="processing-instruction('dbhtml')">
1069 <!-- ==================================================================== -->
1071 <xsl:template match="processing-instruction('dbcmdlist')">
1072 <xsl:call-template name="pi.dbcmdlist"/>
1074 <xsl:template name="process.cmdsynopsis.list">
1075 <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
1076 <xsl:param name="count" select="1"/>
1079 <xsl:when test="$count>count($cmdsynopses)"/>
1081 <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
1085 <xsl:attribute name="href">
1086 <xsl:text>#</xsl:text>
1087 <xsl:call-template name="object.id">
1088 <xsl:with-param name="object" select="$cmdsyn"/>
1089 </xsl:call-template>
1093 <xsl:when test="$cmdsyn/@xreflabel">
1094 <xsl:call-template name="xref.xreflabel">
1095 <xsl:with-param name="target" select="$cmdsyn"/>
1096 </xsl:call-template>
1099 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1100 <xsl:with-param name="target" select="$cmdsyn"/>
1101 </xsl:apply-templates>
1107 <xsl:call-template name="process.cmdsynopsis.list">
1108 <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
1109 <xsl:with-param name="count" select="$count+1"/>
1110 </xsl:call-template>
1115 <!-- ==================================================================== -->
1117 <xsl:template match="processing-instruction('dbfunclist')">
1118 <xsl:call-template name="pi.dbfunclist"/>
1120 <xsl:template name="process.funcsynopsis.list">
1121 <xsl:param name="funcsynopses"/><!-- empty node list by default -->
1122 <xsl:param name="count" select="1"/>
1125 <xsl:when test="$count>count($funcsynopses)"/>
1127 <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
1131 <xsl:attribute name="href">
1132 <xsl:text>#</xsl:text>
1133 <xsl:call-template name="object.id">
1134 <xsl:with-param name="object" select="$cmdsyn"/>
1135 </xsl:call-template>
1139 <xsl:when test="$cmdsyn/@xreflabel">
1140 <xsl:call-template name="xref.xreflabel">
1141 <xsl:with-param name="target" select="$cmdsyn"/>
1142 </xsl:call-template>
1145 <xsl:apply-templates select="$cmdsyn" mode="xref-to">
1146 <xsl:with-param name="target" select="$cmdsyn"/>
1147 </xsl:apply-templates>
1153 <xsl:call-template name="process.funcsynopsis.list">
1154 <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
1155 <xsl:with-param name="count" select="$count+1"/>
1156 </xsl:call-template>
1161 <!-- ==================================================================== -->
1163 <xsl:template match="processing-instruction('dbhtml-include')">
1164 <xsl:call-template name="pi.dbhtml-include"/>
1167 <!-- ==================================================================== -->
1169 <xsl:template name="dbhtml-dir">
1170 <xsl:param name="context" select="."/>
1171 <!-- directories are now inherited from previous levels -->
1172 <xsl:variable name="ppath">
1173 <xsl:if test="$context/parent::*">
1174 <xsl:call-template name="dbhtml-dir">
1175 <xsl:with-param name="context" select="$context/parent::*"/>
1176 </xsl:call-template>
1179 <xsl:variable name="path">
1180 <xsl:call-template name="pi.dbhtml_dir">
1181 <xsl:with-param name="node" select="$context"/>
1182 </xsl:call-template>
1185 <xsl:when test="$path = ''">
1186 <xsl:if test="$ppath != ''">
1187 <xsl:value-of select="$ppath"/>
1191 <xsl:if test="$ppath != ''">
1192 <xsl:value-of select="$ppath"/>
1193 <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
1194 <xsl:text>/</xsl:text>
1197 <xsl:value-of select="$path"/>
1198 <xsl:text>/</xsl:text>