XML technologies / DocBook / Cross-references and links / Internal cross-references

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

An internal cross-reference stays within the same document. During validation, the XML parser checks whether the reference of type IDREF matches a target of type ID. Otherwise, the document is invalid.

In modular documents, a reference and its target can be in different files while remaining internal. After assembly, the target must be within the same document.

DocBook provides these cross-reference elements:

biblioref

cross-reference to a bibliographic entry

coref

cross-reference to a co element; see Callout lists (calloutlist)

footnoteref

cross-reference to a footnote (footnote)

xref

general cross-reference. Use xref if the preceding elements are unnecessary or unwanted.

All these internal cross-references are empty elements. Three important attributes control their reference text:

linkend
(required)

References an anchored element in the same document. The anchor and the value of linkend must match, or validation fails.

endterm
(optional)

Points to an element whose content supplies the reference text.
Rarely used.

xrefstyle
(optional)

Controls cross-reference rendering. Its content depends on the publishing system.
For more information, see Customizing with the xrefstyle attribute.

  

  

back to top