Marketplace
Buy domain register and domain transfer services
Affordable virtual hosting for ecommerce and small business
Cheap domain registration : register domain name and get free extensive domain services 

 Home Prev Up NextDocBook: The Definitive Guide 2.0.10 (Alpha)

informalexample

$Revision: 1.4 $

$Date: 2002/06/12 11:18:14 $

informalexample — A displayed example without a title

Description

InformalExample is a wrapper for an example without a title. Examples often contain ProgramListings or other large block elements.

Processing expectations

Formatted as a displayed block.

Note

It is an error to supply a title in the blockinfo for an informal example.

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.

Prev  Home Next
informalequation  Up informalfigure


 

  

Marketplace:
 
" PC Magazine’s November 2001 performance tests for file servers found that Linux with Samba significantly outperformed Windows 2000.   "