aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-01-10 16:58:39 +0000
committerBruce Momjian <bruce@momjian.us>2009-01-10 16:58:39 +0000
commit2f90d9ff04f531dd4395058ff44ce4dd5820c0ec (patch)
treee53f3d292d497cc01aeaee168c47a64a9ec6a61a
parentfeba07f838f29575a40961a5afca6fdfba30c415 (diff)
downloadpostgresql-2f90d9ff04f531dd4395058ff44ce4dd5820c0ec.tar.gz
postgresql-2f90d9ff04f531dd4395058ff44ce4dd5820c0ec.zip
Update link guidelines.
-rw-r--r--doc/src/sgml/README.links22
1 files changed, 10 insertions, 12 deletions
diff --git a/doc/src/sgml/README.links b/doc/src/sgml/README.links
index c3a93680aba..1991c20b23f 100644
--- a/doc/src/sgml/README.links
+++ b/doc/src/sgml/README.links
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/README.links,v 1.2 2009/01/10 16:03:15 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/README.links,v 1.3 2009/01/10 16:58:39 momjian Exp $ -->
Linking within SGML documents can be confusing, so here is a summary:
@@ -7,22 +7,20 @@ Intra-document Linking
----------------------
<xref>
- used to link to a section without supplying text for the link;
- text comes from the link target; has no close tag
+ use to get link text from the title of the target link; has no
+ close tag
http://www.oasis-open.org/docbook/documentation/reference/html/xref.html
<link>
- allows link text to be supplied, requires </link>
+ use to supply text for the link, requires </link>
http://www.oasis-open.org/docbook/documentation/reference/html/link.html
-
linkend=
- controls the target of the link/xref
+ controls the target of the link/xref, required
endterm=
- allows the text of the link/xref to be taken from a different
- link target; endterm in a <link> overrides the supplied text
-
+ for <xref>, allows the text of the link/xref to be taken from a
+ different link target title
External Linking
@@ -34,12 +32,12 @@ External Linking
http://www.oasis-open.org/docbook/documentation/reference/html/ulink.html
url=
- used by <ulink> to specify the URL
+ used by <ulink> to specify the URL, required
Guidelines
----------
-o Do not use endterm with <link> because the supplied text is ignored; use
- <xref>
+o If you want to supply text, use <link>, else <xref>
o Do not use text with <ulink> so the URL appears in printed output
+o You can supply text at the target location with 'xreflabel'