Guide to the DocBook DTD
PrevNext

Anchor

Name

Anchor — Spot in text

Content Model

  EMPTY

Attributes

This element has the Role attribute.

NameValue(s)TypeDefault Value
ArchCDATA#IMPLIED 
ConformanceNMTOKENS#IMPLIED 
IdID#REQUIRED 
OSCDATA#IMPLIED 
PagenumCDATA#IMPLIED 
RemapCDATA#IMPLIED 
RevisionCDATA#IMPLIED 
RevisionFlag(Changed |Added |Deleted |Off)#IMPLIED 
UserLevelCDATA#IMPLIED 
VendorCDATA#IMPLIED 
XRefLabelCDATA#IMPLIED 

Tag Minimization

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

Description

Anchor marks a spot in text, rather than a span of text. It may be used to create a target for a link or IndexTerm. Anchor may appear almost anywhere, and has no content. Anchor has a required ID attribute and optional PageNum, Remap, Role, and XRefLabel attributes.

Parents

These elements contain Anchor: Abbrev, Acronym, Action, Appendix, Application, Article, Attribution, BiblioDiv, BiblioMisc, Bibliography, BlockQuote, BridgeHead, Callout, Caution, Chapter, Citation, CiteTitle, Command, Comment, ComputerOutput, Database, Emphasis, Filename, FirstTerm, ForeignPhrase, FuncParams, FuncSynopsisInfo, Function, GlossDiv, GlossSee, GlossSeeAlso, GlossTerm, Glossary, Hardware, Important, Index, IndexDiv, Interface, InterfaceDefinition, KeyCap, LineAnnotation, Link, ListItem, Literal, LiteralLayout, LoTentry, ManVolNum, Member, MsgAud, MsgExplan, MsgText, Note, OLink, Option, Optional, Para, Parameter, PartIntro, Phrase, Preface, Primary, PrimaryIE, Procedure, ProductName, ProgramListing, Property, Quote, RefEntryTitle, RefPurpose, RefSect1, RefSect2, RefSect3, RefSynopsisDiv, Replaceable, Screen, ScreenInfo, Secondary, SecondaryIE, Sect1, Sect2, Sect3, Sect4, Sect5, See, SeeAlso, SeeAlsoIE, SeeIE, Seg, SegTitle, SetIndex, Sidebar, SimPara, SimpleSect, Step, Subscript, Subtitle, Superscript, Synopsis, SystemItem, Term, Tertiary, TertiaryIE, Tip, Title, TitleAbbrev, ToCback, ToCentry, ToCfront, Trademark, ULink, UserInput, Warning, WordAsWord, entry.

Attributes

Pagenum

PageNum is the number of the page on which a given element begins or occurs in a printed book.

Examples

<PARA>There is an Anchor <ANCHOR ID="ch05-061-AN-7" pagenum="1040"> in 
this sentence, with a PageNum attribute indicating the page 
on which the Anchor falls in some print version of the document.
You can link to that Anchor with an XRef or any of the varieties
of link.  Anchor contributes nothing to the flow of text within
which it occurs; it only marks a point within the flow. 
</PARA> 

PrevHomeNext
AltUpAppendix