XML Patterns

Text Blocks Pattern


The Text Blocks Pattern is used for contexts that stand alone, and normally contain Running Text. Examples include paragraphs, headings and lists; a list contains list items and not usually Running Text directly, but it stands alone, with a clear break before and after.

Text Blocks are normally themselves contained in Container elements such as Chapter, Section, ListItem, and so forth.


The Text Blocks Pattern has these participants:

Container Elements
The environment in which the pattern occurs
Text Block Entity
The list of participating Text Block elements
Running Text Definition
The content of the Text Blocks


Text Blocks are usually represented in a Document Type Definition as a Parameter Entity. The actual elements listed will vary from DTD to DTD, depending on the application; the Pattern specifies only the use of the entity Blocks:

    <!ENTITY % Blocks

The pattern is used in the content model of other elements:

    <!ELEMENT Chapter
	(Title, (%Blocks;|Section)*)
    <!ELEMENT TableCell

In general, %Blocks; is used anywhere a paragraph could appear.


In printed output, Blocks usually break the flow of text at both start and end, although a run-in header breaks only at the start.


none listed

See Also

Running Text Pattern Footnote Text Pattern Item List Pattern Nested Section Pattern