symbol

$Revision: 1666 $

$Date: 2002-06-12 07:19:37 -0400 (Wed, 12 Jun 2002) $

symbol — A name that is replaced by a value before processing

Synopsis

Mixed Content Model

symbol ::=
(%smallcptr.char.mix;)*

Attributes

Common attributes

Name

Type

Default

class
Enumeration:
limit
None

Parameter Entities

The following parameter entities contain symbol:

Parameter Entities
%cptr.char.mix;%ndxterm.char.mix;%para.char.mix;
%refinline.char.mix;%refname.char.mix;%tbl.entry.mdl;
%tech.char.class;%title.char.mix; 

Description

A Symbol is a name that represents a value. It should be used in contexts in which the name will actually be replaced by a value before processing. The canonical example is a #defined symbol in a C program where the C preprocessor replaces every occurance of the symbol with its value before compilation begins.

The Limit value of the Class attribute identifies those symbols that represent system limitations (for example, the number of characters allowed in a path name or the largest possible positive integer). DocBook V3.1 introduced the Constant element, which may be more suitable for some of these symbols.

Processing expectations

Formatted inline.

Children

The following elements occur in symbol: beginpage, indexterm, inlinegraphic, inlinemediaobject, replaceable.

Attributes

class

Class indicates the type of Symbol.

See Also

classname, interface, property, structfield, structname, token, type.

Examples

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<para>
No filename may be more than <symbol class='limit'>MAXPATHLEN</symbol>
characters long.
</para>

No filename may be more than MAXPATHLEN characters long.