HTML Processing Instruction Reference
$Id$
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).Sets background color for an imageUse 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.dbhtml background-color="color"background-color="color"An HTML color valueBackground colorSets background color on a table row or table cellUse the dbhtml bgcolor PI as child of a table row
or cell to set a background color for that table row or cell.dbhtml bgcolor="color"bgcolor="color"An HTML color valueCell background colorSpecifies cellpadding in table or qandaset outputUse the dbhtml cellpadding PI as a child of a
table or qandaset to specify the value
for the HTML cellpadding attribute in the
output HTML table.dbhtml cellpadding="number"cellpadding="number"Specifies the cellpaddinghtml.cellpaddingCell spacing and cell padding,
Q and A formattingSpecifies cellspacing in table or qandaset outputUse the dbhtml cellspacing PI as a child of a
table or qandaset to specify the value
for the HTML cellspacing attribute in the
output HTML table.dbhtml cellspacing="number"cellspacing="number"Specifies the cellspacinghtml.cellspacingCell spacing and cell padding,
Q and A formattingSet value of the class attribute for a table rowUse the dbhtml class PI as a child of a
row to specify a class
attribute and value in the HTML output for that row.dbhtml class="name"class="name"Specifies the class nameTable styles in HTML outputSpecifies a directory name in which to write filesWhen 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.dbhtml dir="path"dir="path"Specifies the pathname for the directorybase.dirdbhtml dir processing instructionSpecifies a filename for a chunkWhen 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.dbhtml filename="filename"filename="path"Specifies the filename for the fileuse.id.as.filenamedbhtml filenamesSpecifies presentation style for a funcsynopsisUse the dbhtml funcsynopsis-style PI as a child of
a funcprototype or anywhere within a funcprototype
control the presentation style for the funcsynopsis
in output.dbhtml funcsynopsis-style="kr"|"ansi"funcsynopsis-style="kr"Displays the funcprototype in K&R stylefuncsynopsis-style="ansi"Displays the funcprototype in ANSI stylefuncsynopsis.styleSpecifies a path to the location of an image fileUse 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.dbhtml img.src.path="path"img.src.path="path"Specifies the pathname to prepend to the name of the image fileimg.src.pathUsing filerefSpecifies the label width for a qandasetUse the dbhtml label-width PI as a child of a
qandaset to specify the width of labels.dbhtml label-width="width"label-width="width"Specifies the label width (including units)Q and A formattingSpecifies interval for lines numbers in verbatimsUse the dbhtml linenumbering.everyNth PI as a child
of a “verbatim” element – programlisting,
screen, synopsis — to specify
the interval at which lines are numbered.dbhtml linenumbering.everyNth="N"linenumbering.everyNth="N"Specifies numbering interval; a number is output
before every Nth linelinenumbering.everyNthLine numberingSpecifies separator text for line numbers in verbatimsUse 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.dbhtml linenumbering.separator="text"linenumbering.separator="text"Specifies the text (zero or more characters)linenumbering.separatorLine numberingSpecifies width for line numbers in verbatimsUse the dbhtml linenumbering.width PI as a child
of a “verbatim” element – programlisting,
screen, synopsis — to specify
the width set aside for line numbers.dbhtml linenumbering.width="width"linenumbering.width="width"Specifies the width (inluding units)linenumbering.widthLine numberingSpecifies presentation style for a variablelist or
segmentedlistUse 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).dbhtml list-presentation="list"|"table"list-presentation="list"Displays the list as a listlist-presentation="table"Displays the list as a tablevariablelist.as.tablesegmentedlist.as.tableVariable list formatting in HTMLSpecifies the width of a variablelist or simplelistUse the dbhtml list-width PI as a child of a
variablelist or a simplelist presented
as a table, to specify the output width.dbhtml list-width="width"list-width="width"Specifies the output width (including units)Variable list formatting in HTMLSpecifies the height for a table rowUse the dbhtml row-height PI as a child of a
row to specify the height of the row.dbhtml row-height="height"row-height="height"Specifies the label height (including units)Row height(obsolete) Sets the starting number on an ordered listThis 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.dbhtml start="character"start="character"Specifies the character to use as the starting
number; use 0-9, a-z, A-Z, or lowercase or uppercase
Roman numeralsList starting numberSpecifies summary for table, variablelist, segmentedlist, or qandaset outputUse the dbhtml table-summary PI as a child of
a table, variablelist,
segmentedlist, or qandaset to specify
the text for the HTML summary attribute
in the output HTML table.dbhtml table-summary="text"table-summary="text"Specifies the summary text (zero or more characters)Variable list formatting in HTML,
Table summary textSpecifies the width for a tableUse the dbhtml table-width PI as a child of a
table to specify the width of the table in
output.dbhtml table-width="width"table-width="width"Specifies the table width (including units or as a percentage)default.table.widthTable widthSets character formatting for terms in a variablelistUse the dbhtml term-presentation PI as a child
of a variablelist to set character formatting for
the term output of the list.dbhtml term-presentation="bold"|"italic"|"bold-italic"term-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-italicVariable list formatting in HTMLSpecifies separator text among terms in a varlistentryUse the dbhtml term-separator PI as a child
of a variablelist to specify the separator text
among term instances.dbhtml term-separator="text"term-separator="text"Specifies the text (zero or more characters)variablelist.term.separatorVariable list formatting in HTMLSpecifies the term width for a variablelistUse the dbhtml term-width PI as a child of a
variablelist to specify the width for
term output.dbhtml term-width="width"term-width="width"Specifies the term width (including units)Variable list formatting in HTMLSpecies whether a TOC should be generated for a qandasetUse the dbhtml toc PI as a child of a
qandaset to specify whether a table of contents
(TOC) is generated for the qandaset.dbhtml toc="0"|"1"toc="0"If zero, no TOC is generatedtoc="1"If 1 (or any non-zero value),
a TOC is generatedQ and A list of questions,
Q and A formattingGenerates a hyperlinked list of commandsUse the dbcmdlist PI as the child of a
refsynopsisdiv containing multiple
cmdsynopsis instances; a hyperlinked navigational
“command list” will be generated at the top of the
refsynopsisdiv, enabling users to quickly jump
to to each command synopsis.dbcmdlist[No parameters]No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?
Generates a hyperlinked list of functionsUse the dbfunclist PI as the child of a
refsynopsisdiv containing multiple
funcsynopsis instances; a hyperlinked
navigational “function list” will be generated at the top of
the refsynopsisdiv, enabling users to quickly
jump to to each function synopsis.dbfunclist[No parameters]No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?
Copies an external well-formed HTML/XML file into current docUse 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.dbhtml href="URI"href="URI"Specifies the URI for the file to include; the URI
can be, for example, a remote http:
URI, or a local filesystem file:
URItextinsert.extensionInserting external HTML code,
External code fileshrefERROR: dbhtml-include processing instruction href has no content.ERROR: dbhtml-include processing instruction has missing or empty href value.filename