postgresql/doc/src/sgml
..
images
keywords
ref
.gitignore
acronyms.sgml
adminpack.sgml
advanced.sgml
amcheck.sgml
appendix-obsolete-default-roles.sgml
appendix-obsolete-pgreceivexlog.sgml
appendix-obsolete-pgresetxlog.sgml
appendix-obsolete-pgxlogdump.sgml
appendix-obsolete-recovery-config.sgml
appendix-obsolete.sgml
arch-dev.sgml
array.sgml
auth-delay.sgml
auto-explain.sgml
backup-manifest.sgml
backup.sgml
bgworker.sgml
biblio.sgml
bki.sgml
bloom.sgml
brin.sgml
btree-gin.sgml
btree-gist.sgml
btree.sgml
catalogs.sgml
charset.sgml
citext.sgml
client-auth.sgml
color.sgml
config.sgml
contrib-spi.sgml
contrib.sgml
cube.sgml
custom-scan.sgml
datatype.sgml
datetime.sgml
dblink.sgml
ddl.sgml
dfunc.sgml
dict-int.sgml
dict-xsyn.sgml
diskusage.sgml
dml.sgml
docguide.sgml
earthdistance.sgml
ecpg.sgml
errcodes.sgml
event-trigger.sgml
extend.sgml
external-projects.sgml
fdwhandler.sgml
features.sgml
file-fdw.sgml
filelist.sgml
func.sgml
fuzzystrmatch.sgml
generate-errcodes-table.pl
generate-keywords-table.pl
generic-wal.sgml
geqo.sgml
gin.sgml
gist.sgml
glossary.sgml
hash.sgml
high-availability.sgml
history.sgml
hstore.sgml
indexam.sgml
indices.sgml
info.sgml
information_schema.sgml
install-binaries.sgml
install-windows.sgml
installation.sgml
intagg.sgml
intarray.sgml
intro.sgml
isn.sgml
jit.sgml
json.sgml
keywords.sgml
legal.sgml
libpq.sgml
limits.sgml
lo.sgml
lobj.sgml
logical-replication.sgml
logicaldecoding.sgml
ltree.sgml
maintenance.sgml
Makefile
manage-ag.sgml
mk_feature_tables.pl
monitoring.sgml
mvcc.sgml
nls.sgml
notation.sgml
oid2name.sgml
oldsnapshot.sgml
pageinspect.sgml
parallel.sgml
passwordcheck.sgml
perform.sgml
pgbuffercache.sgml
pgcrypto.sgml
pgfreespacemap.sgml
pgprewarm.sgml
pgrowlocks.sgml
pgstatstatements.sgml
pgstattuple.sgml
pgsurgery.sgml
pgtrgm.sgml
pgvisibility.sgml
planstats.sgml
plhandler.sgml
plperl.sgml
plpgsql.sgml
plpython.sgml
pltcl.sgml
postgres-fdw.sgml
postgres.sgml
problems.sgml
protocol.sgml
queries.sgml
query.sgml
rangetypes.sgml
README.links
reference.sgml
regress.sgml
release-14.sgml
release.sgml
replication-origins.sgml
rowtypes.sgml
rules.sgml
runtime.sgml
seg.sgml
sepgsql.sgml
sourcerepo.sgml
sources.sgml
spgist.sgml
spi.sgml
sslinfo.sgml
standalone-install.xml
standalone-profile.xsl
start.sgml
storage.sgml
stylesheet-common.xsl
stylesheet-fo.xsl
stylesheet-hh.xsl
stylesheet-html-common.xsl
stylesheet-html-nochunk.xsl
stylesheet-man.xsl
stylesheet-speedup-common.xsl
stylesheet-speedup-xhtml.xsl
stylesheet-text.xsl
stylesheet.css
stylesheet.xsl
syntax.sgml
tableam.sgml
tablefunc.sgml
tablesample-method.sgml
tcn.sgml
test-decoding.sgml
textsearch.sgml
trigger.sgml
tsm-system-rows.sgml
tsm-system-time.sgml
typeconv.sgml
unaccent.sgml
user-manag.sgml
uuid-ossp.sgml
vacuumlo.sgml
wal.sgml
xaggr.sgml
xfunc.sgml
xindex.sgml
xml2.sgml
xoper.sgml
xplang.sgml
xtypes.sgml

<!-- doc/src/sgml/README.links -->

Linking within DocBook documents can be confusing, so here is a summary:


Intra-document Linking
----------------------

<xref>
	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
	http://www.oasis-open.org/docbook/documentation/reference/html/xref.html

linkend=
	controls the target of the link/xref, required

endterm=
	for <xref>, allows the text of the link/xref to be taken from a
	different link target title

<link>
	use to supply text for the link, only uses linkend, requires </link>
	http://www.oasis-open.org/docbook/documentation/reference/html/link.html
	can be embedded inside of <command>, unlike <xref>


External Linking
----------------

<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=
	used by <ulink> to specify the URL, required


Guidelines
----------

- For an internal link, if you want to supply text, use <link>, else
  <xref>.

- Specific nouns like GUC variables, SQL commands, and contrib modules
  usually have xreflabels.

- For an external link, use <ulink>, with or without link text.

- xreflabels added to tags prevent the chapter/section for id's from being
  referenced;  only the xreflabel is accessible.  Therefore, use xreflabels
  only when linking is common, and chapter/section information is unneeded.