token
token — A unit of information.
Synopsis
- Zero or more of:
- text
phrase
(db._phrase)replaceable
- Graphic inlines
- Indexing inlines
- Linking inlines
- Ubiquitous inlines
alt
anchor
annotation
biblioref
indexterm
(db.indexterm.endofrange)indexterm
(db.indexterm.singular)indexterm
(db.indexterm.startofrange)inlinemediaobject
link
olink
remark
subscript
superscript
xref
Attributes
Description
A token
identifies a unit of information.
Usually, “tokens” are the result of some processing pass
that has performed lexical analysis and divided a data set into the
smallest units of information used for subsequent processing.
Exactly what constitutes a token varies by context.
Processing expectations
Formatted inline.
This element occurs in 51 elements.
This element contains 16 elements.
Examples
1 <article xmlns='http://docbook.org/ns/docbook'> 2 <title>Example token</title> 4 <para>In parsing, line ends are turned into the <token>CRLF</token>, all other whitespace becomes <token>WHITESP</token>. 6 </para> 8 </article>
In parsing, line ends are turned into the CRLF, all other whitespace becomes WHITESP.