HTML Processing Instruction Reference
$Id: pi.xsl 9848 2014-01-17 22:44:39Z bobstayton $
IntroductionThis is generated reference documentation for all
user-specifiable processing instructions (PIs) in the DocBook
XSL stylesheets for HTML output.
You add these PIs at particular points in a document to
cause specific “exceptions” to formatting/output behavior. To
make global changes in formatting/output behavior across an
entire document, it’s better to do it by setting an
appropriate stylesheet parameter (if there is one).dbhtml_background-colorSets background color for an imagedbhtml background-color="color"DescriptionUse the dbhtml background-color PI before or
after an image (graphic, inlinegraphic,
imagedata, or videodata element) as a
sibling to the element, to set a background color for the
image.Parametersbackground-color="color"An HTML color valueRelated Information in DocBook XSL: The Complete GuideBackground colordbhtml_bgcolorSets background color on a CALS table row or table celldbhtml bgcolor="color"DescriptionUse the dbhtml bgcolor PI as child of a CALS table row
or cell to set a background color for that table row or cell.Parametersbgcolor="color"An HTML color valueRelated Information in DocBook XSL: The Complete GuideCell background colordbhtml_cellpaddingSpecifies cellpadding in CALS table or qandaset outputdbhtml cellpadding="number"DescriptionUse the dbhtml cellpadding PI as a child of a
CALS table or qandaset to specify the value
for the HTML cellpadding attribute in the
output HTML table.Parameterscellpadding="number"Specifies the cellpaddingRelated Global Parametershtml.cellpaddingRelated Information in DocBook XSL: The Complete GuideCell spacing and cell padding,
Q and A formattingdbhtml_cellspacingSpecifies cellspacing in CALS table or qandaset outputdbhtml cellspacing="number"DescriptionUse the dbhtml cellspacing PI as a child of a
CALS table or qandaset to specify the value
for the HTML cellspacing attribute in the
output HTML table.Parameterscellspacing="number"Specifies the cellspacingRelated Global Parametershtml.cellspacingRelated Information in DocBook XSL: The Complete GuideCell spacing and cell padding,
Q and A formattingdbhtml_classSet value of the class attribute for a CALS table rowdbhtml class="name"DescriptionUse the dbhtml class PI as a child of a
row to specify a class
attribute and value in the HTML output for that row.Parametersclass="name"Specifies the class nameRelated Information in DocBook XSL: The Complete GuideTable styles in HTML outputdbhtml_dirSpecifies a directory name in which to write filesdbhtml dir="path"DescriptionWhen chunking output, use the dbhtml dir PI
as a child of a chunk source to cause the output of that
chunk to be written to the specified directory; also, use it
as a child of a mediaobject to specify a
directory into which any long-description files for that
mediaobject will be written.The output directory specification is inherited by all
chunks of the descendants of the element. If descendants need
to go to a different directory, then add another
dbhtml dir processing
instruction as a child of the source element
for that chunk, and specify the path relative to the
ancestor path.For example, to put most chunk files into
shared
but one chapter into
exception
at the same level, use:<book>
<?dbhtml dir="shared"?>
...
<chapter>
<?dbhtml dir="../exception"?>
</chapter>
</book>
Parametersdir="path"Specifies the pathname for the directoryRelated Global Parametersbase.dirRelated Information in DocBook XSL: The Complete Guidedbhtml dir processing instructiondbhtml_filenameSpecifies a filename for a chunkdbhtml filename="filename"DescriptionWhen chunking output, use the dbhtml filename
PI as a child of a chunk source to specify a filename for
the output file for that chunk. Include the filename suffix.You cannot include a directory path in the filename value,
or your links may not work. Add a
dbhtml dir processing instruction
to specify the output directory. You can also combine the two
specifications in one processing instruction:
dbhtml dir="mydir" filename="myfile.html".Parametersfilename="path"Specifies the filename for the fileRelated Global Parametersuse.id.as.filenameRelated Information in DocBook XSL: The Complete Guidedbhtml filenamesdbhtml_funcsynopsis-styleSpecifies presentation style for a funcsynopsisdbhtml funcsynopsis-style="kr"|"ansi"DescriptionUse the dbhtml funcsynopsis-style PI as a child of
a funcsynopsis or anywhere within a funcsynopsis
to control the presentation style for output of all
funcprototype instances within that funcsynopsis.Parametersfuncsynopsis-style="kr"Displays funcprototype output in K&R stylefuncsynopsis-style="ansi"Displays funcprototype output in ANSI styleRelated Global Parametersfuncsynopsis.styledbhtml_img.src.pathSpecifies a path to the location of an image filedbhtml img.src.path="path"DescriptionUse the dbhtml img.src.path PI before or
after an image (graphic,
inlinegraphic, imagedata, or
videodata element) as a sibling to the element,
to specify a path to the location of the image; in HTML
output, the value specified for the
img.src.path attribute is prepended to the
filename.Parametersimg.src.path="path"Specifies the pathname to prepend to the name of the image fileRelated Global Parametersimg.src.pathRelated Information in DocBook XSL: The Complete GuideUsing filerefdbhtml_label-widthSpecifies the label width for a qandasetdbhtml label-width="width"DescriptionUse the dbhtml label-width PI as a child of a
qandaset to specify the width of labels.Parameterslabel-width="width"Specifies the label width (including units)Related Information in DocBook XSL: The Complete GuideQ and A formattingdbhtml_linenumbering.everyNthSpecifies interval for line numbers in verbatimsdbhtml linenumbering.everyNth="N"DescriptionUse the dbhtml linenumbering.everyNth PI as a child
of a “verbatim” element – programlisting,
screen, synopsis — to specify
the interval at which lines are numbered.Parameterslinenumbering.everyNth="N"Specifies numbering interval; a number is output
before every Nth lineRelated Global Parameterslinenumbering.everyNthRelated Information in DocBook XSL: The Complete GuideLine numberingdbhtml_linenumbering.separatorSpecifies separator text for line numbers in verbatimsdbhtml linenumbering.separator="text"DescriptionUse the dbhtml linenumbering.separator PI as a child
of a “verbatim” element – programlisting,
screen, synopsis — to specify
the separator text output between the line numbers and content.Parameterslinenumbering.separator="text"Specifies the text (zero or more characters)Related Global Parameterslinenumbering.separatorRelated Information in DocBook XSL: The Complete GuideLine numberingdbhtml_linenumbering.widthSpecifies width for line numbers in verbatimsdbhtml linenumbering.width="width"DescriptionUse the dbhtml linenumbering.width PI as a child
of a “verbatim” element – programlisting,
screen, synopsis — to specify
the width set aside for line numbers.Parameterslinenumbering.width="width"Specifies the width (inluding units)Related Global Parameterslinenumbering.widthRelated Information in DocBook XSL: The Complete GuideLine numberingdbhtml_list-presentationSpecifies presentation style for a variablelist or
segmentedlistdbhtml list-presentation="list"|"table"DescriptionUse the dbhtml list-presentation PI as a child of
a variablelist or segmentedlist to
control the presentation style for the list (to cause it, for
example, to be displayed as a table).Parameterslist-presentation="list"Displays the list as a listlist-presentation="table"Displays the list as a tableRelated Global Parametersvariablelist.as.tablesegmentedlist.as.tableRelated Information in DocBook XSL: The Complete GuideVariable list formatting in HTMLdbhtml_list-widthSpecifies the width of a variablelist or simplelistdbhtml list-width="width"DescriptionUse the dbhtml list-width PI as a child of a
variablelist or a simplelist presented
as a table, to specify the output width.Parameterslist-width="width"Specifies the output width (including units)Related Information in DocBook XSL: The Complete GuideVariable list formatting in HTMLdbhtml_row-heightSpecifies the height for a CALS table rowdbhtml row-height="height"DescriptionUse the dbhtml row-height PI as a child of a
row to specify the height of the row.Parametersrow-height="height"Specifies the row height (including units)Related Information in DocBook XSL: The Complete GuideRow heightdbhtml_start(obsolete) Sets the starting number on an ordered listdbhtml start="character"DescriptionThis PI is obsolete. The intent of
this PI was to provide a means for setting a specific starting
number for an ordered list. Instead of this PI, set a value
for the override attribute on the first
listitem in the list; that will have the same
effect as what this PI was intended for.Parametersstart="character"Specifies the character to use as the starting
number; use 0-9, a-z, A-Z, or lowercase or uppercase
Roman numeralsRelated Information in DocBook XSL: The Complete GuideList starting numberdbhtml_stop-chunkingDo not chunk any descendants of this element.dbhtml stop-chunkingDescriptionWhen 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:
<section>
<title>Configuring pencil</title>
<?dbhtml stop-chunking?>
...
</section>Related Information in DocBook XSL: The Complete GuideChunking into multiple HTML filesdbhtml_table-summarySpecifies summary for CALS table, variablelist, segmentedlist, or qandaset outputdbhtml table-summary="text"DescriptionUse the dbhtml table-summary PI as a child of
a CALS table, variablelist,
segmentedlist, or qandaset to specify
the text for the HTML summary attribute
in the output HTML table.Parameterstable-summary="text"Specifies the summary text (zero or more characters)Related Information in DocBook XSL: The Complete GuideVariable list formatting in HTML,
Table summary textdbhtml_table-widthSpecifies the width for a CALS tabledbhtml table-width="width"DescriptionUse the dbhtml table-width PI as a child of a
CALS table to specify the width of the table in
output.Parameterstable-width="width"Specifies the table width (including units or as a percentage)Related Global Parametersdefault.table.widthRelated Information in DocBook XSL: The Complete GuideTable widthdbhtml_term-presentationSets character formatting for terms in a variablelistdbhtml term-presentation="bold"|"italic"|"bold-italic"DescriptionUse the dbhtml term-presentation PI as a child
of a variablelist to set character formatting for
the term output of the list.Parametersterm-presentation="bold"Specifies that terms are displayed in boldterm-presentation="italic"Specifies that terms are displayed in italicterm-presentation="bold-italic"Specifies that terms are displayed in bold-italicRelated Information in DocBook XSL: The Complete GuideVariable list formatting in HTMLdbhtml_term-separatorSpecifies separator text among terms in a varlistentrydbhtml term-separator="text"DescriptionUse the dbhtml term-separator PI as a child
of a variablelist to specify the separator text
among term instances.Parametersterm-separator="text"Specifies the text (zero or more characters)Related Global Parametersvariablelist.term.separatorRelated Information in DocBook XSL: The Complete GuideVariable list formatting in HTMLdbhtml_term-widthSpecifies the term width for a variablelistdbhtml term-width="width"DescriptionUse the dbhtml term-width PI as a child of a
variablelist to specify the width for
term output.Parametersterm-width="width"Specifies the term width (including units)Related Information in DocBook XSL: The Complete GuideVariable list formatting in HTMLdbhtml_tocSpecifies whether a TOC should be generated for a qandasetdbhtml toc="0"|"1"DescriptionUse the dbhtml toc PI as a child of a
qandaset to specify whether a table of contents
(TOC) is generated for the qandaset.Parameterstoc="0"If zero, no TOC is generatedtoc="1"If 1 (or any non-zero value),
a TOC is generatedRelated Information in DocBook XSL: The Complete GuideQ and A list of questions,
Q and A formattingdbcmdlistGenerates a hyperlinked list of commandsdbcmdlistDescriptionUse the dbcmdlist PI as the child of any
element (for example, refsynopsisdiv) containing multiple
cmdsynopsis instances; a hyperlinked navigational
“command list” will be generated at the top of output for that
element, enabling users to quickly jump
to each command synopsis.Parameters[No parameters]dbfunclistGenerates a hyperlinked list of functionsdbfunclistDescriptionUse the dbfunclist PI as the child of any
element (for example, refsynopsisdiv) containing multiple
funcsynopsis instances; a hyperlinked
navigational “function list” will be generated at the top of
output for that element, enabling users to quickly
jump to to each function synopsis.Parameters[No parameters]dbhtml-include_hrefCopies an external well-formed HTML/XML file into current docdbhtml-include href="URI"DescriptionUse the dbhtml-include href PI anywhere in a
document to cause the contents of the file referenced by the
href pseudo-attribute to be copied/inserted “as
is” into your HTML output at the point in document order
where the PI occurs in the source.The referenced file may contain plain text (as long as
it is “wrapped” in an html element — see the
note below) or markup in any arbitrary vocabulary,
including HTML — but it must conform to XML
well-formedness constraints (because the feature in XSLT
1.0 for opening external files, the
document() function, can only handle
files that meet XML well-formedness constraints).Among other things, XML well-formedness constraints
require a document to have a single root
element. So if the content you want to
include is plain text or is markup that does
not have a single root element,
wrap the content in an
html element. The stylesheets will
strip out that surrounding html “wrapper” when
they find it, leaving just the content you want to
insert.Parametershref="URI"Specifies the URI for the file to include; the URI
can be, for example, a remote http:
URI, or a local filesystem file:
URIRelated Global Parameterstextinsert.extensionRelated Information in DocBook XSL: The Complete GuideInserting external HTML code,
External code filesdbhhSets topic name and topic id for context-sensitive HTML Helpdbhh topicname="name" topicid="id"DescriptionUse the dbhh PI as a child of components
that should be used as targets for context-sensitive help requests.Parameterstopicname="name"Specifies a unique string constant that identifies a help topictopicid="id"Specifies a unique integer value for the topicname stringRelated Information in DocBook XSL: The Complete GuideContext-sensitive help