3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
5 xmlns:fo="http://www.w3.org/1999/XSL/Format"
6 xmlns:xlink="http://www.w3.org/1999/xlink"
7 exclude-result-prefixes="doc xlink"
10 <!-- ********************************************************************
11 $Id: pi.xsl 8487 2009-07-14 21:43:36Z bobstayton $
12 ********************************************************************
14 This file is part of the XSL DocBook Stylesheet distribution.
15 See ../README or http://docbook.sf.net/release/xsl/current/ for
16 copyright and other information.
18 ******************************************************************** -->
20 <doc:reference xmlns=""><info><title>FO Processing Instruction Reference</title>
21 <releaseinfo role="meta">
22 $Id: pi.xsl 8487 2009-07-14 21:43:36Z bobstayton $
26 <partintro id="partintro">
27 <title>Introduction</title>
29 <para>This is generated reference documentation for all
30 user-specifiable processing instructions (PIs) in the DocBook
31 XSL stylesheets for FO output.
33 <para>You add these PIs at particular points in a document to
34 cause specific “exceptions” to formatting/output behavior. To
35 make global changes in formatting/output behavior across an
36 entire document, it’s better to do it by setting an
37 appropriate stylesheet parameter (if there is one).</para>
43 <!-- ==================================================================== -->
45 <doc:pi name="dbfo_background-color" xmlns="">
46 <refpurpose>Sets background color for an image</refpurpose>
48 <para>Use the <tag class="xmlpi">dbfo background-color</tag> PI before or
49 after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
50 <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
51 sibling to the element, to set a background color for the
55 <synopsis><tag class="xmlpi">dbfo background-color="<replaceable>color</replaceable>"</tag></synopsis>
59 <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
61 <para>An HTML color value</para>
67 <para><link role="tcg"
68 xlink:href="BGcolor.html"
69 >Background color</link></para>
72 <xsl:template name="pi.dbfo_background-color">
73 <xsl:param name="node" select="."/>
74 <xsl:call-template name="dbfo-attribute">
75 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
76 <xsl:with-param name="attribute" select="'background-color'"/>
80 <doc:pi name="dbfo_bgcolor" xmlns="">
81 <refpurpose>Sets background color on a table row or table cell</refpurpose>
83 <para>Use the <tag class="xmlpi">dbfo bgcolor</tag> PI as child of a table row
84 or cell to set a background color for that table row or cell.</para>
85 <para>This PI works for both CALS and HTML tables.</para>
88 <synopsis><tag class="xmlpi">dbfo bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
92 <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
94 <para>An HTML color value</para>
100 <para><link role="tcg"
101 xlink:href="BGtableColor.html#CellBGColor"
102 >Cell background color</link></para>
105 <xsl:template name="pi.dbfo_bgcolor">
106 <xsl:param name="node" select="."/>
107 <xsl:call-template name="dbfo-attribute">
108 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
109 <xsl:with-param name="attribute" select="'bgcolor'"/>
113 <doc:pi name="dbfo_float-type" xmlns="">
114 <refpurpose>Specifies float behavior for a sidebar</refpurpose>
116 <para>Use the <tag class="xmlpi">dbfo float-type</tag> PI to specify the float
117 behavior for a <tag>sidebar</tag> (to cause the sidebar to be
118 displayed as a marginal note).</para>
121 <synopsis><tag class="xmlpi">dbfo float-type="margin.note"</tag></synopsis>
125 <varlistentry><term>float-type="margin.note"</term>
127 <para>Specifies that the <tag>sidebar</tag> should be
128 displayed as a marginal note.</para>
133 <refsee role="params">
134 <para><parameter>sidebar.float.type</parameter> (parameter),
135 <parameter>sidebar.float.width</parameter> (parameter),
136 <parameter>sidebar.properties</parameter> (attribute-set),
137 <parameter>sidebar.title.properties</parameter> (attribute-set)
141 <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
142 side float</link></para>
145 <xsl:template name="pi.dbfo_float-type">
146 <xsl:param name="node" select="."/>
147 <xsl:call-template name="dbfo-attribute">
148 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
149 <xsl:with-param name="attribute" select="'float-type'"/>
153 <doc:pi name="dbfo_funcsynopsis-style" xmlns="">
154 <refpurpose>Specifies presentation style for a funcsynopsis</refpurpose>
156 <para>Use the <tag class="xmlpi">dbfo funcsynopsis-style</tag> PI as a child of
157 a <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
158 to control the presentation style for output of all
159 <tag>funcprototype</tag> instances within that funcsynopsis.</para>
162 <synopsis><tag class="xmlpi">dbfo funcsynopsis-style="kr"|"ansi"</tag></synopsis>
166 <varlistentry><term>funcsynopsis-style="kr"</term>
168 <para>Displays <tag>funcprototype</tag> output in K&R style</para>
171 <varlistentry><term>funcsynopsis-style="ansi"</term>
173 <para>Displays <tag>funcprototype</tag> output in ANSI style</para>
178 <refsee role="params">
179 <para><parameter>funcsynopsis.style</parameter></para>
182 <xsl:template name="pi.dbfo_funcsynopsis-style">
183 <xsl:param name="node" select="."/>
184 <xsl:call-template name="dbfo-attribute">
185 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
186 <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
190 <doc:pi name="dbfo_glossary-presentation" xmlns="">
191 <refpurpose>Specifies presentation style for a glossary</refpurpose>
193 <para>Use the <tag class="xmlpi">dbfo glossary-presentation</tag> PI as a child of
194 a <tag>glossary</tag> to control its presentation style.</para>
197 <synopsis><tag class="xmlpi">dbfo glossary-presentation="list"|"blocks"</tag></synopsis>
201 <varlistentry><term>glossary-presentation="list"</term>
203 <para>Displays the glossary as a list</para>
206 <varlistentry><term>glossary-presentation="blocks"</term>
208 <para>Displays the glossary as blocks</para>
213 <refsee role="params">
214 <para><parameter>glossary.as.blocks</parameter></para>
217 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
218 formatting in print</link></para>
221 <xsl:template name="pi.dbfo_glossary-presentation">
222 <xsl:param name="node" select="."/>
223 <xsl:call-template name="dbfo-attribute">
224 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
225 <xsl:with-param name="attribute" select="'glossary-presentation'"/>
229 <doc:pi name="dbfo_glosslist-presentation" xmlns="">
230 <refpurpose>Specifies presentation style for a glosslist</refpurpose>
232 <para>Use the <tag class="xmlpi">dbfo glosslist-presentation</tag> PI as a child of
233 a <tag>glosslist</tag> to control its presentation style.</para>
236 <synopsis><tag class="xmlpi">dbfo glosslist-presentation="list"|"blocks"</tag></synopsis>
240 <varlistentry><term>glosslist-presentation="list"</term>
242 <para>Displays the glosslist as a list</para>
245 <varlistentry><term>glosslist-presentation="blocks"</term>
247 <para>Displays the glosslist as blocks</para>
252 <refsee role="params">
253 <para><parameter>glosslist.as.blocks</parameter> </para>
256 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
257 formatting in print</link></para>
260 <xsl:template name="pi.dbfo_glosslist-presentation">
261 <xsl:param name="node" select="."/>
262 <xsl:call-template name="dbfo-attribute">
263 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
264 <xsl:with-param name="attribute" select="'glosslist-presentation'"/>
268 <doc:pi name="dbfo_glossterm-width" xmlns="">
269 <refpurpose>Specifies the glossterm width for a glossary or
270 glosslist</refpurpose>
272 <para>Use the <tag class="xmlpi">dbfo glossterm-width</tag> PI as a child of a
273 <tag>glossary</tag> or <tag>glosslist</tag> to specify the
274 width for output of <tag>glossterm</tag> instances in the
278 <synopsis><tag class="xmlpi">dbfo glossterm-width="<replaceable>width</replaceable>"</tag></synopsis>
282 <varlistentry><term>glossterm-width="<replaceable>width</replaceable>"</term>
284 <para>Specifies the glossterm width (including units)</para>
289 <refsee role="params">
290 <para><parameter>glossterm.width</parameter>,
291 <parameter>glossterm.separation</parameter>
295 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
296 formatting in print</link></para>
299 <xsl:template name="pi.dbfo_glossterm-width">
300 <xsl:param name="node" select="."/>
301 <xsl:call-template name="dbfo-attribute">
302 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
303 <xsl:with-param name="attribute" select="'glossterm-width'"/>
307 <doc:pi name="dbfo_keep-together" xmlns="">
308 <refpurpose>Specifies “keep” behavior for a table, example,
309 figure, equation, procedure, or task</refpurpose>
311 <para>Use the <tag class="xmlpi">dbfo keep-together</tag> PI as a child of a
312 formal object (<tag>table</tag>, <tag>example</tag>,
313 <tag>figure</tag>, <tag>equation</tag>, <tag>procedure</tag>, or
314 <tag>task</tag>) to specify “keep” behavior (to allow the object to
315 “break” across a page).</para>
316 <para>The PI also works with <tag>informaltable</tag>, <tag>informalexample</tag>,
317 <tag>informalfigure</tag> and <tag>informalequation</tag>.
322 <synopsis><tag class="xmlpi">dbfo keep-together="auto"|"always"</tag></synopsis>
326 <varlistentry><term>keep-together="auto"</term>
328 <para>Enables the object to break across a page</para>
331 <varlistentry><term>keep-together="always"</term>
333 <para>Prevents the object from breaking across a page (the
334 default stylesheet behavior)</para>
339 <refsee role="params">
340 <para>formal.object.properties</para>
343 <para><link role="tcg" xlink:href="PageBreaking.html#KeepTogetherPI"
344 >Keep-together processing instruction</link></para>
347 <xsl:template name="pi.dbfo_keep-together">
348 <xsl:param name="node" select="."/>
349 <xsl:call-template name="dbfo-attribute">
350 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
351 <xsl:with-param name="attribute" select="'keep-together'"/>
355 <doc:pi name="dbfo_label-width" xmlns="">
356 <refpurpose>Specifies the label width for a qandaset, itemizedlist, orderedlist
357 or calloutlist</refpurpose>
359 <para>Use the <tag class="xmlpi">dbfo label-width</tag> PI as a child of a
360 <tag>qandaset</tag>, <tag>itemizedlist</tag>, <tag>orderedlist</tag>,
361 or <tag>calloutlist</tag> to specify the width of labels.</para>
364 <synopsis><tag class="xmlpi">dbfo label-width="<replaceable>width</replaceable>"</tag></synopsis>
368 <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
370 <para>Specifies the label width (including units)</para>
376 <para><link role="tcg"
377 xlink:href="QandAformat.html"
378 >Q and A formatting</link></para>
381 <xsl:template name="pi.dbfo_label-width">
382 <xsl:param name="node" select="."/>
383 <xsl:call-template name="dbfo-attribute">
384 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
385 <xsl:with-param name="attribute" select="'label-width'"/>
389 <doc:pi name="dbfo_linenumbering.everyNth" xmlns="">
390 <refpurpose>Specifies interval for line numbers in verbatims</refpurpose>
392 <para>Use the <tag class="xmlpi">dbfo linenumbering.everyNth</tag> PI as a child
393 of a “verbatim” element – <tag>programlisting</tag>,
394 <tag>screen</tag>, <tag>synopsis</tag> — to specify
395 the interval at which lines are numbered.</para>
398 <synopsis><tag class="xmlpi">dbfo linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
402 <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
404 <para>Specifies numbering interval; a number is output
405 before every <replaceable>N</replaceable>th line</para>
410 <refsee role="params">
411 <para><parameter>linenumbering.everyNth</parameter></para>
414 <para><link role="tcg"
415 xlink:href="AnnotateListing.html#LineNumbering"
416 >Line numbering</link></para>
419 <xsl:template name="pi.dbfo_linenumbering.everyNth">
420 <xsl:param name="node" select="."/>
421 <xsl:call-template name="dbfo-attribute">
422 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
423 <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
427 <doc:pi name="dbfo_linenumbering.separator" xmlns="">
428 <refpurpose>Specifies separator text for line numbers in verbatims</refpurpose>
430 <para>Use the <tag class="xmlpi">dbfo linenumbering.separator</tag> PI as a child
431 of a “verbatim” element – <tag>programlisting</tag>,
432 <tag>screen</tag>, <tag>synopsis</tag> — to specify
433 the separator text output between the line numbers and content.</para>
436 <synopsis><tag class="xmlpi">dbfo linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
440 <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
442 <para>Specifies the text (zero or more characters)</para>
447 <refsee role="params">
448 <para><parameter>linenumbering.separator</parameter></para>
451 <para><link role="tcg"
452 xlink:href="AnnotateListing.html#LineNumbering"
453 >Line numbering</link></para>
456 <xsl:template name="pi.dbfo_linenumbering.separator">
457 <xsl:param name="node" select="."/>
458 <xsl:call-template name="dbfo-attribute">
459 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
460 <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
464 <doc:pi name="dbfo_linenumbering.width" xmlns="">
465 <refpurpose>Specifies width for line numbers in verbatims</refpurpose>
467 <para>Use the <tag class="xmlpi">dbfo linenumbering.width</tag> PI as a child
468 of a “verbatim” element – <tag>programlisting</tag>,
469 <tag>screen</tag>, <tag>synopsis</tag> — to specify
470 the width set aside for line numbers.</para>
473 <synopsis><tag class="xmlpi">dbfo linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
477 <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
479 <para>Specifies the width (inluding units)</para>
484 <refsee role="params">
485 <para><parameter>linenumbering.width</parameter></para>
488 <para><link role="tcg"
489 xlink:href="AnnotateListing.html#LineNumbering"
490 >Line numbering</link></para>
493 <xsl:template name="pi.dbfo_linenumbering.width">
494 <xsl:param name="node" select="."/>
495 <xsl:call-template name="dbfo-attribute">
496 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
497 <xsl:with-param name="attribute" select="'linenumbering.width'"/>
501 <doc:pi name="dbfo_list-presentation" xmlns="">
502 <refpurpose>Specifies presentation style for a variablelist or
503 segmentedlist</refpurpose>
505 <para>Use the <tag class="xmlpi">dbfo list-presentation</tag> PI as a child of
506 a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
507 control the presentation style for the list (to cause it, for
508 example, to be displayed as a table).</para>
511 <synopsis><tag class="xmlpi">dbfo list-presentation="list"|"blocks"|"table"</tag></synopsis>
515 <varlistentry><term>list-presentation="list"</term>
517 <para>Displays the list as a list</para>
520 <varlistentry><term>list-presentation="blocks"</term>
522 <para>(<tag>variablelist</tag> only) Displays the list as blocks</para>
525 <varlistentry><term>list-presentation="table"</term>
527 <para>(<tag>segmentedlist</tag> only) Displays the list as a table</para>
532 <refsee role="params">
535 <para><parameter>variablelist.as.blocks</parameter></para>
538 <para><parameter>variablelist.as.table</parameter></para>
543 <para><link role="tcg"
544 xlink:href="Variablelists.html#ListIndents"
545 >Variable list formatting in print</link></para>
548 <xsl:template name="pi.dbfo_list-presentation">
549 <xsl:param name="node" select="."/>
550 <xsl:call-template name="dbfo-attribute">
551 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
552 <xsl:with-param name="attribute" select="'list-presentation'"/>
556 <doc:pi name="dbfo_list-width" xmlns="">
557 <refpurpose>Specifies the width of a horizontal simplelist</refpurpose>
559 <para>Use the <tag class="xmlpi">dbfo list-width</tag> PI as a child of a
560 <tag>simplelist</tag> whose <tag class="attribute">class</tag>
561 value is <literal>horizontal</literal>, to specify the width
562 of the <tag>simplelist</tag>.</para>
565 <synopsis><tag class="xmlpi">dbfo list-width="<replaceable>width</replaceable>"</tag></synopsis>
569 <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
571 <para>Specifies the <tag>simplelist</tag> width (including units)</para>
577 <xsl:template name="pi.dbfo_list-width">
578 <xsl:param name="node" select="."/>
579 <xsl:call-template name="dbfo-attribute">
580 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
581 <xsl:with-param name="attribute" select="'list-width'"/>
585 <doc:pi name="dbfo_orientation" xmlns="">
586 <refpurpose>Specifies the orientation for a CALS table row or cell</refpurpose>
588 <para>Use the <tag class="xmlpi">dbfo orientation</tag> PI as a child of a CALS
589 <tag>table</tag> row or cell to specify the orientation
590 (rotation) for the row or cell.</para>
593 <synopsis><tag class="xmlpi">dbfo orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</tag></synopsis>
597 <varlistentry><term>orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</term>
599 <para>Specifies the number of degrees by which the cell or
600 row is rotated</para>
606 <xsl:template name="pi.dbfo_orientation">
607 <xsl:param name="node" select="."/>
608 <xsl:call-template name="dbfo-attribute">
609 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
610 <xsl:with-param name="attribute" select="'orientation'"/>
614 <doc:pi name="dbfo_pgwide" xmlns="">
615 <refpurpose>Specifies if an <tag>equation</tag> or <tag>example</tag> goes across full page width</refpurpose>
617 <para>Use the <tag class="xmlpi">dbfo pgwide</tag> PI as a child of an
618 <tag>equation</tag> or <tag>example</tag> to specify that the
619 content should rendered across the full width of the page.</para>
622 <synopsis><tag class="xmlpi">dbfo pgwide="0"|"1"</tag></synopsis>
626 <varlistentry><term>pgwide="0"</term>
628 <para>If zero, the content is rendered across the current
632 <varlistentry><term>pgwide="1"</term>
634 <para>If <code>1</code> (or any non-zero value), the
635 content is rendered across the full width of the page</para>
640 <refsee role="params">
641 <para><parameter>pgwide.properties</parameter></para>
644 <xsl:template name="pi.dbfo_pgwide">
645 <xsl:param name="node" select="."/>
646 <xsl:call-template name="dbfo-attribute">
647 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
648 <xsl:with-param name="attribute" select="'pgwide'"/>
652 <doc:pi name="dbfo_rotated-width" xmlns="">
653 <refpurpose>Specifies the width for a CALS table <tag>entry</tag> or
654 <tag>row</tag></refpurpose>
656 <para>Use the <tag class="xmlpi">dbfo rotated-width</tag> PI as a child of
657 <tag>entry</tag> or <tag>row</tag> instance in a CALS table to specify the
658 width of that the <tag>entry</tag> or <tag>row</tag>; or
659 use it higher up in table to cause the width to be inherited
660 recursively down.</para>
663 <synopsis><tag class="xmlpi">dbfo rotated-width="<replaceable>width</replaceable>"</tag></synopsis>
667 <varlistentry><term>rotated-width="<replaceable>width</replaceable>"</term>
669 <para>Specifies the width of a row or cell (including units)</para>
675 <xsl:template name="pi.dbfo_rotated-width">
676 <xsl:param name="node" select="."/>
677 <xsl:call-template name="dbfo-attribute">
678 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
679 <xsl:with-param name="attribute" select="'rotated-width'"/>
683 <doc:pi name="dbfo_sidebar-width" xmlns="">
684 <refpurpose>Specifies the width of a sidebar</refpurpose>
686 <para>Use the <tag class="xmlpi">dbfo sidebar-width</tag> PI as a child of a
687 <tag>sidebar</tag> to specify the width of the sidebar.</para>
690 <synopsis><tag class="xmlpi">dbfo sidebar-width="<replaceable>width</replaceable>"</tag></synopsis>
694 <varlistentry><term>sidebar-width="<replaceable>width</replaceable>"</term>
696 <para>Specifies the <tag>sidebar</tag> width (including units)</para>
701 <refsee role="params">
702 <para><parameter>sidebar.float.type parameter</parameter>,
703 <parameter>sidebar.float.width parameter</parameter>,
704 <parameter>sidebar.properties attribute-set</parameter>,
705 <parameter>sidebar.title.properties</parameter>
709 <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
710 side float</link></para>
713 <xsl:template name="pi.dbfo_sidebar-width">
714 <xsl:param name="node" select="."/>
715 <xsl:call-template name="dbfo-attribute">
716 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
717 <xsl:with-param name="attribute" select="'sidebar-width'"/>
721 <doc:pi name="dbfo_start" xmlns="">
722 <refpurpose>(obsolete) Sets the starting number on an ordered list</refpurpose>
724 <para><emphasis>This PI is obsolete</emphasis>. The intent of
725 it was to provide a means for setting a specific starting
726 number for an ordered list. Instead of this PI, set a value
727 for the <literal>override</literal> attribute on the first
728 <tag>listitem</tag> in the list; that will have the same
729 effect as what this PI was intended for.</para>
732 <synopsis><tag class="xmlpi">dbfo start="<replaceable>character</replaceable>"</tag></synopsis>
736 <varlistentry><term>start="<replaceable>character</replaceable>"</term>
738 <para>Specifies the character to use as the starting
739 number; use 0-9, a-z, A-Z, or lowercase or uppercase
740 Roman numerals</para>
746 <para><link role="tcg"
747 xlink:href="Orderedlists.html#ListStartNum"
748 >List starting number</link></para>
751 <xsl:template name="pi.dbfo_start">
752 <xsl:param name="node" select="."/>
753 <xsl:call-template name="pi-attribute">
754 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
755 <xsl:with-param name="attribute" select="'start'"/>
759 <doc:pi name="dbfo_table-width" xmlns="">
760 <refpurpose>Specifies the width for a CALS table or for revhistory
763 <para>Use the <tag class="xmlpi">dbfo table-width</tag> PI as a child or
764 sibling of a CALS <tag>table</tag>, or as a child of an
765 <tag>informaltable</tag>, <tag>entrytbl</tag>, or
766 <tag>revhistory</tag> instance (which is rendered as a table
767 in output) to specify the width of the table in output.</para>
770 <synopsis><tag class="xmlpi">dbfo table-width="<replaceable>width</replaceable>"</tag></synopsis>
774 <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
776 <para>Specifies the table width (including units or as a percentage)</para>
782 <para><link role="tcg"
783 xlink:href="Tables.html#TableWidth"
784 >Table width</link></para>
787 <xsl:template name="pi.dbfo_table-width">
788 <xsl:param name="node" select="."/>
789 <xsl:call-template name="dbfo-attribute">
790 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
791 <xsl:with-param name="attribute" select="'table-width'"/>
795 <doc:pi name="dbfo_term-width" xmlns="">
796 <refpurpose>Specifies the term width for a variablelist</refpurpose>
798 <para>Use the <tag class="xmlpi">dbfo term-width</tag> PI as a child of a
799 <tag>variablelist</tag> to specify the width for
800 <tag>term</tag> output.</para>
803 <synopsis><tag class="xmlpi">dbfo term-width="<replaceable>width</replaceable>"</tag></synopsis>
807 <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
809 <para>Specifies the term width (including units)</para>
815 <para><link role="tcg"
816 xlink:href="Variablelists.html#ListIndents"
817 >Variable list formatting in print</link></para>
820 <xsl:template name="pi.dbfo_term-width">
821 <xsl:param name="node" select="."/>
822 <xsl:call-template name="dbfo-attribute">
823 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
824 <xsl:with-param name="attribute" select="'term-width'"/>
828 <doc:pi name="dbfo_toc" xmlns="">
829 <refpurpose>Specifies whether a TOC should be generated for a qandaset</refpurpose>
831 <para>Use the <tag class="xmlpi">dbfo toc</tag> PI as a child of a
832 <tag>qandaset</tag> to specify whether a table of contents
833 (TOC) is generated for the <tag>qandaset</tag>.</para>
836 <synopsis><tag class="xmlpi">dbfo toc="0"|"1"</tag></synopsis>
840 <varlistentry><term>toc="0"</term>
842 <para>If zero, no TOC is generated</para>
845 <varlistentry><term>toc="1"</term>
847 <para>If <code>1</code> (or any non-zero value),
848 a TOC is generated</para>
854 <para><link role="tcg"
855 xlink:href="QandAtoc.html"
856 >Q and A list of questions</link>,
858 xlink:href="QandAformat.html"
859 >Q and A formatting</link></para>
862 <xsl:template name="pi.dbfo_toc">
863 <xsl:param name="node" select="."/>
864 <xsl:call-template name="dbfo-attribute">
865 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
866 <xsl:with-param name="attribute" select="'toc'"/>
870 <doc:pi name="dbfo-need" xmlns="">
871 <refpurpose>Specify a need for space (a kind of soft page break)</refpurpose>
873 <para>A “need” is a request for space on a page. If the
874 requested space is not available, the page breaks and the
875 content that follows the need request appears on the next
876 page. If the requested space is available, then no page break
880 <synopsis><tag class="xmlpi">dbfo-need height="<replaceable>n</replaceable>" [space-before="<replaceable>n</replaceable>"]</tag></synopsis>
884 <varlistentry><term>height="<replaceable>n</replaceable>"</term>
886 <para>The amount of height needed (including units)</para>
889 <varlistentry><term>space-before="<replaceable>n</replaceable>"</term>
891 <para>The amount of extra vertical space to add (including units)</para>
897 <para><link role="tcg"
898 xlink:href="PageBreaking.html#SoftPageBreaks"
899 >Soft page breaks</link></para>
903 <doc:pi name="dbfo_row-height" xmlns="">
904 <refpurpose>Specifies the height for a CALS table row</refpurpose>
906 <para>Use the <tag class="xmlpi">dbfo row-height</tag> PI as a child of a
907 <tag>row</tag> to specify the height of the row.</para>
910 <synopsis><tag class="xmlpi">dbfo row-height="<replaceable>height</replaceable>"</tag></synopsis>
914 <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
916 <para>Specifies the row height (including units)</para>
922 <para><link role="tcg"
923 xlink:href="RowHeight.html"
924 >Row height</link></para>
927 <xsl:template name="pi.dbfo_row-height">
928 <xsl:param name="node" select="."/>
929 <xsl:call-template name="dbfo-attribute">
930 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
931 <xsl:with-param name="attribute" select="'row-height'"/>
936 <xsl:template name="pi.dbfo-need">
937 <xsl:variable name="pi-height">
938 <xsl:call-template name="dbfo-attribute">
939 <xsl:with-param name="pis" select="."/>
940 <xsl:with-param name="attribute" select="'height'"/>
944 <xsl:variable name="height">
946 <xsl:when test="$pi-height != ''">
947 <xsl:value-of select="$pi-height"/>
949 <xsl:otherwise>0pt</xsl:otherwise>
953 <xsl:variable name="pi-before">
954 <xsl:call-template name="dbfo-attribute">
955 <xsl:with-param name="pis" select="."/>
956 <xsl:with-param name="attribute" select="'space-before'"/>
960 <xsl:variable name="spacer">
961 <fo:block-container width="100%" height="{$height}">
962 <fo:block><fo:leader leader-length="0pt"/></fo:block>
963 </fo:block-container>
967 <xsl:when test="$fop1.extensions != 0">
968 <!-- Doesn't work in fop -->
970 <xsl:when test="$fop.extensions != 0">
971 <!-- Doesn't work in fop -->
973 <xsl:when test="$pi-before != '' and
974 not(following-sibling::listitem) and
975 not(following-sibling::step)">
976 <fo:block space-after="0pt" space-before="{$pi-before}">
977 <xsl:copy-of select="$spacer"/>
980 <xsl:when test="following-sibling::para">
981 <fo:block space-after="0pt"
982 xsl:use-attribute-sets="normal.para.spacing">
983 <xsl:copy-of select="$spacer"/>
986 <xsl:when test="following-sibling::table or
987 following-sibling::figure or
988 following-sibling::example or
989 following-sibling::equation">
990 <fo:block space-after="0pt"
991 xsl:use-attribute-sets="formal.object.properties">
992 <xsl:copy-of select="$spacer"/>
995 <xsl:when test="following-sibling::informaltable or
996 following-sibling::informalfigure or
997 following-sibling::informalexample or
998 following-sibling::informalequation">
999 <fo:block space-after="0pt"
1000 xsl:use-attribute-sets="informal.object.properties">
1001 <xsl:copy-of select="$spacer"/>
1004 <xsl:when test="following-sibling::itemizedlist or
1005 following-sibling::orderedlist or
1006 following-sibling::variablelist or
1007 following-sibling::simplelist">
1008 <fo:block space-after="0pt"
1009 xsl:use-attribute-sets="informal.object.properties">
1010 <xsl:copy-of select="$spacer"/>
1013 <xsl:when test="following-sibling::listitem or
1014 following-sibling::step">
1015 <fo:list-item space-after="0pt"
1016 xsl:use-attribute-sets="informal.object.properties">
1017 <fo:list-item-label/>
1018 <fo:list-item-body start-indent="0pt" end-indent="0pt">
1019 <xsl:copy-of select="$spacer"/>
1020 </fo:list-item-body>
1023 <xsl:when test="following-sibling::sect1 or
1024 following-sibling::sect2 or
1025 following-sibling::sect3 or
1026 following-sibling::sect4 or
1027 following-sibling::sect5 or
1028 following-sibling::section">
1029 <fo:block space-after="0pt"
1030 xsl:use-attribute-sets="section.title.properties">
1031 <xsl:copy-of select="$spacer"/>
1035 <fo:block space-after="0pt" space-before="0em">
1036 <xsl:copy-of select="$spacer"/>
1042 <xsl:when test="$fop1.extensions != 0">
1043 <!-- Doesn't work in fop -->
1045 <xsl:when test="$fop.extensions != 0">
1046 <!-- Doesn't work in fop -->
1048 <xsl:when test="following-sibling::listitem or
1049 following-sibling::step">
1050 <fo:list-item space-before.precedence="force"
1051 space-before="-{$height}"
1053 space-after.precedence="force">
1054 <fo:list-item-label/>
1055 <fo:list-item-body start-indent="0pt" end-indent="0pt"/>
1059 <fo:block space-before.precedence="force"
1060 space-before="-{$height}"
1062 space-after.precedence="force">
1068 <!-- ==================================================================== -->
1070 <xsl:template name="dbfo-attribute">
1071 <!-- * dbfo-attribute is an interal utility template for retrieving -->
1072 <!-- * pseudo-attributes/parameters from PIs -->
1073 <xsl:param name="pis" select="processing-instruction('dbfo')"/>
1074 <xsl:param name="attribute">filename</xsl:param>
1075 <xsl:call-template name="pi-attribute">
1076 <xsl:with-param name="pis" select="$pis"/>
1077 <xsl:with-param name="attribute" select="$attribute"/>
1078 </xsl:call-template>
1081 <!-- ==================================================================== -->
1083 <xsl:template match="processing-instruction()">
1086 <!-- ==================================================================== -->
1088 <xsl:template match="processing-instruction('dbfo-need')">
1089 <xsl:call-template name="pi.dbfo-need"/>