Output HTML for a block-level element with an optional title and caption.db2html.block.formal

Output HTML for a block-level element with an optional title and caption.

Parameters <code>node</code>

The block-level element to render.

<code>class</code>

The value of the HTML class attribute.

<code>title</code>

An element to use for the title.

<code>caption</code>

An element to use for the caption.

<code>titleattr</code>

An optional value for the HTML title attribute.

<code>icon</code>

An icon for the block, as a copyable node set.

This template outputs HTML for a formal DocBook element, one that can have a title or caption. It passes the class parameter to html.class.attr. If the class parameter is not provided, it uses the local name of node. Even if title and caption are both empty, this template still outputs the extra wrapper elements for formal elements. If titleattr is provided, it is used for the value of the HTML title attribute on the outermost div element.

This template handles conditional processing.

Calls Templates