2010-09-20 22:08:53 +02:00
|
|
|
<!-- doc/src/sgml/README.links -->
|
2009-01-10 05:40:08 +01:00
|
|
|
|
|
|
|
Linking within SGML documents can be confusing, so here is a summary:
|
|
|
|
|
|
|
|
|
|
|
|
Intra-document Linking
|
|
|
|
----------------------
|
2009-01-10 17:03:15 +01:00
|
|
|
|
2009-01-10 05:40:08 +01:00
|
|
|
<xref>
|
2009-01-10 17:58:39 +01:00
|
|
|
use to get link text from the title of the target link; has no
|
|
|
|
close tag
|
2009-01-10 05:40:08 +01:00
|
|
|
http://www.oasis-open.org/docbook/documentation/reference/html/xref.html
|
|
|
|
|
|
|
|
<link>
|
2009-01-10 17:58:39 +01:00
|
|
|
use to supply text for the link, requires </link>
|
2009-01-10 05:40:08 +01:00
|
|
|
http://www.oasis-open.org/docbook/documentation/reference/html/link.html
|
|
|
|
|
|
|
|
linkend=
|
2009-01-10 17:58:39 +01:00
|
|
|
controls the target of the link/xref, required
|
2009-01-10 05:40:08 +01:00
|
|
|
|
|
|
|
endterm=
|
2009-01-10 17:58:39 +01:00
|
|
|
for <xref>, allows the text of the link/xref to be taken from a
|
|
|
|
different link target title
|
2009-01-10 05:40:08 +01:00
|
|
|
|
2009-01-10 17:03:15 +01:00
|
|
|
|
2009-01-10 05:40:08 +01:00
|
|
|
External Linking
|
|
|
|
----------------
|
2009-01-10 17:03:15 +01:00
|
|
|
|
2009-01-10 05:40:08 +01:00
|
|
|
<ulink>
|
|
|
|
like <link>, but uses a URL (not a document target); requires
|
|
|
|
</ulink>; if no text is specified, the URL appears as the link text
|
|
|
|
http://www.oasis-open.org/docbook/documentation/reference/html/ulink.html
|
|
|
|
|
|
|
|
url=
|
2009-01-10 17:58:39 +01:00
|
|
|
used by <ulink> to specify the URL, required
|
2009-01-10 17:03:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
Guidelines
|
|
|
|
----------
|
|
|
|
|
2009-01-10 17:58:39 +01:00
|
|
|
o If you want to supply text, use <link>, else <xref>
|
2009-01-10 17:03:15 +01:00
|
|
|
o Do not use text with <ulink> so the URL appears in printed output
|
2009-01-10 17:58:39 +01:00
|
|
|
o You can supply text at the target location with 'xreflabel'
|