Debian Codegraph @

en/refpages/elements/link/refentry.xml

raw symbols SCIP
1 <refentry id="link.element">
2 <?dbhtml filename="link.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>link</secondary></indexterm>
11 <refentrytitle>link</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>link</refname>
16 <refpurpose>&link.purpose;</refpurpose>
17 </refnamediv>
18
19 &link.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 <sgmltag>Link</sgmltag> is a general purpose hypertext element.
24 Usually, <sgmltag>Link</sgmltag> surrounds the text that should be made
25 &ldquo;hot,&rdquo; (unlike <sgmltag>XRef</sgmltag> which must generate the text) but
26 the <sgmltag class='attribute'>EndTerm</sgmltag> attribute can be used to copy
27 text from another element.
28 </para>
29
30 <refsect2 id="dbreproc.link"><title>Processing expectations</title>
31 <para>
32 &format.inline;
33 </para>
34 <para>
35 If the <sgmltag>Link</sgmltag> element has content,
36 then that content is processed for output
37 as the &ldquo;hot&rdquo; text.
38 If the <sgmltag>Link</sgmltag> element has content
39 and an
40 <sgmltag class='attribute'>EndTerm</sgmltag> attribute, then the
41 content is used and the
42 <sgmltag class='attribute'>EndTerm</sgmltag> is ignored.
43 If the <sgmltag>Link</sgmltag> element has an
44 <sgmltag class='attribute'>EndTerm</sgmltag> attribute and
45 no content, then the
46 content of the element pointed to by <sgmltag class='attribute'>EndTerm</sgmltag>
47 should be repeated at the location of the <sgmltag>Link</sgmltag> and used
48 as the &ldquo;hot&rdquo; text.
49 </para>
50 <para>
51 Linking elements must not be nested within other linking
52 elements (including themselves). Because DocBook is harmonizing
53 towards &XML;, this restriction cannot easily be enforced by the &DTD;. The
54 processing of nested linking elements is undefined.
55 </para>
56 </refsect2>
57
58 <refsect2 role='fu' revision="4.0"><title>&FutureChanges;</title>
59 <para>
60 <!--do not index this occurance-->
61 &fu.interfacedefinition;
62 </para>
63 </refsect2>
64
65
66 &link.parents.gen;
67 &link.children.gen;
68 </refsect1>
69 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
70 <variablelist>
71 <varlistentry><term>endterm</term>
72 <listitem>
73 <para>
74 <sgmltag class="attribute">Endterm</sgmltag> points to the element whose content
75 is to be used as the text of the link. If <sgmltag class="attribute">Endterm</sgmltag>
76 is supplied on a <sgmltag>Link</sgmltag> which has content, the value of
77 <sgmltag class="attribute">Endterm</sgmltag> should be ignored.
78 </para>
79 </listitem>
80 </varlistentry>
81 <varlistentry><term>linkend</term>
82 <listitem>
83 <para>
84 <sgmltag class="attribute">Linkend</sgmltag> points to the target of the link.
85 </para>
86 </listitem>
87 </varlistentry>
88 <varlistentry><term>type</term>
89 <listitem>
90 <para>
91 <sgmltag class="attribute">Type</sgmltag> is available for application-specific
92 customization of the linking behavior.
93 </para>
94 </listitem>
95 </varlistentry>
96 </variablelist>
97 </refsect1>
98 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
99 &link.seealso.gen;
100 </refsect1>
101 <refsect1><title>Examples</title>
102
103 <informalexample role="example-source">
104 <programlisting>&link.example.1.txt;</programlisting>
105 </informalexample>
106
107 &link.example.seealso.gen;
108 </refsect1>
109 </refentry>
110