DocBook: The Definitive Guide

docbook: the definitive guide
By Norman Walsh & Leonard Muellner
1st Edition October 1999
1-56592-580-7, Order Number: 5807
652 pages, $36.95 , Includes CD-ROM

DocBook: The Definitive Guide
PrevNext

Name

InformalExample -- A displayed example without a title

Synopsis

Content Model

InformalExample ::= ((CalloutList|GlossList|ItemizedList|OrderedList|SegmentedList|   SimpleList|VariableList|LiteralLayout|ProgramListing|   ProgramListingCO|Screen|ScreenCO|ScreenShot|Synopsis|   CmdSynopsis|FuncSynopsis|FormalPara|Para|SimPara|Address|   BlockQuote|Graphic|GraphicCO|MediaObject|MediaObjectCO|   InformalEquation|InformalExample|InformalFigure|InformalTable|   IndexTerm)+)

Attributes

Common attributes

Name

Type

Default

WidthNUMBERNone

Tag Minimization

Both the start- and end-tags are required for this element.

Parameter Entities

%admon.mix;%bookcomponent.content;%component.mix;
%divcomponent.mix;%example.mix;%figure.mix;
%footnote.mix;%glossdef.mix;%indexdivcomponent.mix;
%informal.class;%para.mix;%qandaset.mix;
%refcomponent.mix;%sidebar.mix;

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.

Parents

These elements contain InformalExample: Answer, Appendix, Article, BiblioDiv, Bibliography, BlockQuote, Callout, Caution, Chapter, Example, Figure, Footnote, Glossary, GlossDef, GlossDiv, Important, Index, IndexDiv, InformalExample, InformalFigure, ListItem, MsgExplan, MsgText, Note, Para, PartIntro, Preface, Procedure, QandADiv, QandASet, Question, RefSect1, RefSect2, RefSect3, RefSynopsisDiv, Sect1, Sect2, Sect3, Sect4, Sect5, Section, SetIndex, Sidebar, SimpleSect, Step, Tip, Warning.

Children

The following elements occur in InformalExample: Address, BlockQuote, CalloutList, CmdSynopsis, FormalPara, FuncSynopsis, GlossList, Graphic, GraphicCO, IndexTerm, InformalEquation, InformalExample, InformalFigure, InformalTable, ItemizedList, LiteralLayout, MediaObject, MediaObjectCO, OrderedList, Para, ProgramListing, ProgramListingCO, Screen, ScreenCO, ScreenShot, SegmentedList, SimPara, SimpleList, Synopsis, VariableList.

In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.

In some contexts, the following elements are excluded: IndexTerm, InformalTable.

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).

See Also

Equation, Example, Figure, InformalEquation, InformalFigure, InformalTable, Table

Examples

<!DOCTYPE informalexample PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <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.


PrevHomeNext
InformalEquationUpInformalFigure

Back to: DocBook: The Definitive Guide


O'Reilly Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies

© 1999, O'Reilly & Associates, Inc.



DocBook. The Definitive Guide
DocBook 5: The Definitive Guide
ISBN: 0596805020
EAN: 2147483647
Year: 1999
Pages: 412
Authors: Walsh Norman, Richard L. Hamilton
BUY ON AMAZON

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net