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