Skip to main content
Version: DocBook V4.5

informalexample

informalexample — A displayed example without a title

Synopsis

Content Model

informalexample ::=
(blockinfo?,
(calloutlist|glosslist|bibliolist|itemizedlist|orderedlist|
segmentedlist|simplelist|variablelist|literallayout|
programlisting|programlistingco|screen|screenco|screenshot|
synopsis|cmdsynopsis|funcsynopsis|classsynopsis|fieldsynopsis|
constructorsynopsis|destructorsynopsis|methodsynopsis|
formalpara|para|simpara|address|blockquote|graphic|graphicco|
mediaobject|mediaobjectco|informalequation|informalexample|
informalfigure|informaltable|indexterm|beginpage|procedure)+)

Attributes

Common attributes

Name

Type

Default

width

CDATA

None

floatstyle

CDATA

None

Attributes

width

Width specifies the width (in characters) of the longest line in this InformalExample (formatters may use this value to determine scaling or rotation).

Examples

<!DOCTYPE informalexample PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<informalexample>
<programlisting>
sub print_content_model {
my($self) = shift;
local($_) = shift;
local(*FILE) = shift;

my(@cm) = $self->format_content_model2($_);
foreach $_ (@cm) {
print FILE $self->make_links($_, 1, 1), "\n";
}
}
</programlisting>
</informalexample>
sub print_content_model {
my($self) = shift;
local($_) = shift;
local(*FILE) = shift;

my(@cm) = $self->format_content_model2($_);
foreach $_ (@cm) {
print FILE $self->make_links($_, 1, 1), "\n";
}
}

For additional examples, see also screenco.