source: trunk/Distribution/XSL/params/olink.doctitle.xml@ 2

Last change on this file since 2 was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 4.2 KB
Line 
1<refentry id="olink.doctitle">
2<refmeta>
3<refentrytitle>olink.doctitle</refentrytitle>
4<refmiscinfo role="type">string</refmiscinfo>
5</refmeta>
6<refnamediv>
7<refname>olink.doctitle</refname>
8<refpurpose>show the document title for external olinks?</refpurpose>
9
10</refnamediv>
11<refsynopsisdiv> <src:fragment id="olink.doctitle.frag">
12<xsl:param name="olink.doctitle" select="no"/> </src:fragment>
13</refsynopsisdiv>
14<refsect1>
15<title>Description</title>
16<para>When olinks between documents are resolved, the generated text
17may not make it clear that the reference is to another document.
18It is possible for the stylesheets to append the other document's
19title to external olinks. For this to happen, two parameters must
20be set.</para>
21<itemizedlist>
22<listitem>
23<para>This <parameter>olink.doctitle</parameter> parameter
24should be set to either <literal>yes</literal> or <literal>maybe</literal>
25to enable this feature.
26</para>
27</listitem>
28<listitem>
29<para>And you should also set the <parameter>current.docid</parameter>
30parameter to the document id for the document currently
31being processed for output.
32</para>
33</listitem>
34</itemizedlist>
35
36<para>
37Then if an olink's <literal>targetdoc</literal> id differs from
38the <literal>current.docid</literal> value, the stylesheet knows
39that it is a reference to another document and can
40append the target document's
41title to the generated olink text. </para>
42
43<para>The text for the target document's title is copied from the
44olink database from the <sgmltag>ttl</sgmltag> element
45of the top-level <sgmltag>div</sgmltag> for that document.
46If that <sgmltag>ttl</sgmltag> element is missing or empty,
47no title is output.
48</para>
49
50<para>The supported values for <parameter>olink.doctitle</parameter> are:
51</para>
52<variablelist>
53<varlistentry>
54<term><literal>yes</literal></term>
55<listitem>
56<para>
57Always insert the title to the target document if it is not
58the current document.
59</para>
60</listitem>
61</varlistentry>
62<varlistentry>
63<term><literal>no</literal></term>
64<listitem>
65<para>
66Never insert the title to the target document, even if requested
67in an <sgmltag class="attribute">xrefstyle</sgmltag> attribute.
68</para>
69</listitem>
70</varlistentry>
71<varlistentry>
72<term><literal>maybe</literal></term>
73<listitem>
74<para>
75Only insert the title to the target document, if requested
76in an <sgmltag class="attribute">xrefstyle</sgmltag> attribute.
77</para>
78</listitem>
79</varlistentry>
80</variablelist>
81<para>An <sgmltag class="attribute">xrefstyle</sgmltag> attribute
82may override the global setting for individual olinks.
83The following values are supported in an
84<sgmltag class="attribute">xrefstyle</sgmltag>
85attribute using the <literal>select:</literal> syntax:
86</para>
87
88<variablelist>
89<varlistentry>
90<term><literal>docname</literal></term>
91<listitem>
92<para>
93Insert the target document name for this olink using the
94<literal>docname</literal> gentext template, but only
95if the value of <parameter>olink.doctitle</parameter>
96is not <literal>no</literal>.
97</para>
98</listitem>
99</varlistentry>
100<varlistentry>
101<term><literal>docnamelong</literal></term>
102<listitem>
103<para>
104Insert the target document name for this olink using the
105<literal>docnamelong</literal> gentext template, but only
106if the value of <parameter>olink.doctitle</parameter>
107is not <literal>no</literal>.
108</para>
109</listitem>
110</varlistentry>
111<varlistentry>
112<term><literal>nodocname</literal></term>
113<listitem>
114<para>
115Omit the target document name even if
116the value of <parameter>olink.doctitle</parameter>
117is <literal>yes</literal>.
118</para>
119</listitem>
120</varlistentry>
121</variablelist>
122<para>Another way of inserting the target document name
123for a single olink is to employ an
124<sgmltag class="attribute">xrefstyle</sgmltag>
125attribute using the <literal>template:</literal> syntax.
126The <literal>%o</literal> placeholder (the letter o, not zero)
127in such a template
128will be filled in with the target document's title when it is processed.
129This will occur regardless of
130the value of <parameter>olink.doctitle</parameter>.
131</para>
132<para>Note that prior to version 1.66 of the XSL stylesheets,
133the allowed values for this parameter were 0 and 1. Those
134values are still supported and mapped to 'no' and 'yes', respectively.
135</para>
136</refsect1>
137</refentry>
Note: See TracBrowser for help on using the repository browser.