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>
|
2014-01-30 18:26:18 +01:00
|
|
|
use to get chapter/section number from the title of the target
|
|
|
|
link, or xreflabel if defined at the target, or refentrytitle if target
|
|
|
|
is a refentry; 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
|
2011-05-08 04:29:20 +02:00
|
|
|
</ulink>; if no text is specified, the URL appears as the link
|
|
|
|
text
|
2009-01-10 05:40:08 +01:00
|
|
|
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
|
2011-05-08 04:29:20 +02:00
|
|
|
o Specific nouns like GUC variables, SQL commands, and contrib modules
|
|
|
|
usually have xreflabels
|