XML technologies / DocBook / Cross-references and links / Internal cross-references / Additional options for DocBook 5

(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)

The preceding references are also allowed in DocBook 5. Simply replace the attribute id with xml:id.

In DocBook 5, the element xref is not essential for internal cross-references. The attribute linkend is now allowed everywhere and turns any element into a cross-reference. The following example shows the code.

Example: Reference using the attribute linkend

<para>Des Weiteren gibt es <acronym linkend="chap.xml">XML</acronym>, die eXtensible Markup Language...</para>
  ...
<chapter xml:id="chap.xml">
  <title>XML</title>
  <para> ... </para>
</chapter>

The advantage is that any element can become a cross-reference. When should you use the attribute linkend and when should you avoid it? Some guidance:

  

back to top