XML technologies / DocBook / Cross-references and links / Comparing reference elements

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

The previous sections presented the different ways to insert references. The following table provides an overview.

Table: Comparing reference elements

biblioref

link

ulink

olink

XLinks

coref

footnoteref

xref

Type

internal only

internal/externala

external only

across documents

internal/external

DocBook version

4.x/5.0

4.x/5.0

4.x

4.x/5.0

5.0

Attribute name

linkend

linkend

url

targetdoc a,b
and
targetptr a,b
or
xlink:href b

xlink:href

Source data type

IDREF a or
xsd:IDREF b

IDREF a or
xsd:IDREF b

CDATA

CDATA (targetdoc
and targetptr)a
or
xsd:anyURI
(targetdoc)b

xsd:anyURI

Target data type

ID a or xsd:ID b

Text allowed?

no

yes

yes

yes

yes

Checked during
validation?

yes

no

no

no

no

Checked during
transformation?

yes

no

no

yes

no

Controlling
presentation

with xrefstyle, endtermc

with xrefstyle, endterm

with xrefstyle

with xrefstyle

with xrefstyle

Fragment identifiers
allowed?

yesb /noa

yesb /noa

no

no

yes

a   Only for DocBook 4
b   Only for DocBook 5
c   Not in coref and footnoteref

  

back to top