Name
symbol — A name that is replaced by a value before processing
Synopsis
symbol ::=
(text | phrase db._phrase | replaceable
| Graphic inlines | Indexing inlines | Linking inlines | Ubiquitous inlines)*
Attribute synopsis
Common attributes and common linking attributes.
Additional attributes:
class(enumeration) = “limit”
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 occurrence of the symbol with its value
before compilation begins.
The Limit value of the class attribute identifies those symbols
that represent system limitations (e.g., the number of characters
allowed in a pathname 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.
Attributes
Common attributes and common linking attributes.
- class
Identifies the class of symbol
Enumerated values: “limit” The value is a limit of some kind.
See Also
classname, property, token, type
Examples
<article xmlns='http://docbook.org/ns/docbook'> <title>Example symbol</title> <para>No filename may be more than <symbol class='limit'>MAXPATHLEN</symbol> characters long. </para> </article>
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access