Search the Catalog
DocBook: The Definitive Guide

DocBook: The Definitive Guide

By Norman Walsh & Leonard Muellner
1st Edition October 1999
1-56592-580-7, Order Number: 5807
652 pages, $36.95 , Includes CD-ROM

Anchor

Name

Anchor -- A spot in the document

Synopsis

Content Model

Anchor ::=
EMPTY

Attributes

Name

Type

Default

RoleCDATANone
OSCDATANone
XRefLabelCDATANone
RemapCDATANone
UserLevelCDATANone
RevisionFlag

Enumeration:

Added
Changed
Deleted
Off

None
ConformanceNMTOKENSNone
IdIDRequired
PagenumCDATANone
VendorCDATANone
ArchCDATANone
RevisionCDATANone

Tag Minimization

The start-tag is required for this element. The end-tag is optional, if your SGML declaration allows minimization.

Parameter Entities

%admon.mix;%base.char.class;%bookcomponent.content;
%component.mix;%cptr.char.mix;%divcomponent.mix;
%genobj.class;%indexdivcomponent.mix;%ndxterm.char.mix;
%para.char.mix;%programlisting.content;%qandaset.mix;
%refcomponent.mix;%refinline.char.mix;%screen.content;
%sidebar.mix;%tbl.entry.mdl;%title.char.mix;
%word.char.mix;

Description

An anchor identifies a single spot in the content. This may serve as the target for a cross reference, for example, from a Link. The Anchor element may occur almost anywhere.

Anchor has the Role attribute and all of the common attributes except Lang.

Processing expectations

Anchor has no content and generally produces no output. It is a link target.

Children

In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.

Attributes

Pagenum

PageNum indicates the page on which the anchor occurs in some printed version of the document.

The PageNum attribute does not influence the pagination or page numbering of an SGML application processing the document; it is informative, not declarative.

See Also

Link, OLink, ULink, XRef

Examples

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<para>
The anchor element<anchor id="example.anchor.1"> is empty and contributes
nothing to the flow of the content in which it occurs.  It is only useful
as a target.
</para>

The anchor element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target.

Back to: DocBook: The Definitive Guide


oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

© 2001, O'Reilly & Associates, Inc.