XML Patterns

Running Text Pattern

Synopsis

The Running Text Pattern is used for general textual content that may contain markup at the phrase, word or symbol level but not at the block level.

Actors

The Running Text Pattern has these participants:

Block Level Elements
The environment in which the pattern occurs
Internal Markup
Markup that can occur within Running Text
Running Text Definition
The implementation of Running Text

Markup

Running Text is 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 RunningText:

    <!ENTITY % RunningText
	'
	    #PCDATA|Quote|Emphasis|MathML|Phrase|BibRef|
	    FootNoteReference
	'
    >
  

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

    <!ELEMENT FootnoteBody
	(%RunningText;)*
    >
  

The purpose of a single definition for Running Text is two-fold: firstly, to encapsulate the concept of generic running text, making the intent of a document type definition clearer; secondly, to ensure that the same set of basic elements is allowed everywhere text is allowed.

Additional elements can be added for a specific situation as follows:

    <!ELEMENT PlaceName
	(%RunningText;|PlaceAlias|GridReference)*
    >
  

Processing

This pattern does not require special processing. It is normally only seen by a validating XML processor.

Variations

In a complex Document Type Definition, it may be convenient to include other parameter entities in the definition of RunningText:

    <!ENTITY % RunningText
	'
	    #PCDATA|Quote|Emphasis|Phrase|BibRef|
	    %elements.footnotes;|%elements.MathML;
	'
    >
  

See Also

Text Blocks Pattern