source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/olink.lang.fallback.sequence.xml@ 64a2cd5

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 64a2cd5 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<refentry xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 version="5.0" xml:id="olink.lang.fallback.sequence">
7<refmeta>
8<refentrytitle>olink.lang.fallback.sequence</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>olink.lang.fallback.sequence</refname>
13<refpurpose>look up translated documents if olink not found?</refpurpose>
14
15</refnamediv>
16<refsynopsisdiv> <src:fragment xml:id="olink.lang.fallback.sequence.frag">
17<xsl:param name="olink.lang.fallback.sequence"></xsl:param>
18</src:fragment>
19</refsynopsisdiv>
20<refsection><info><title>Description</title></info>
21
22
23<para>This parameter defines a list of lang values
24to search among to resolve olinks.
25</para>
26
27<para>Normally an olink tries to resolve to a document in the same
28language as the olink itself. The language of an olink
29is determined by its nearest ancestor element with a
30<tag class="attribute">lang</tag> attribute, otherwise the
31value of the <parameter>l10n.gentext.default.lang</parameter>
32parameter.
33</para>
34
35<para>An olink database can contain target data for the same
36document in multiple languages. Each set of data has the
37same value for the <tag>targetdoc</tag> attribute in
38the <tag>document</tag> element in the database, but with a
39different <tag>lang</tag> attribute value.
40</para>
41
42<para>When an olink is being resolved, the target is first
43sought in the document with the same language as the olink.
44If no match is found there, then this parameter is consulted
45for additional languages to try.</para>
46
47<para>The <parameter>olink.lang.fallback.sequence</parameter>
48must be a whitespace separated list of lang values to
49try. The first one with a match in the olink database is used.
50The default value is empty.</para>
51
52<para>For example, a document might be written in German
53and contain an olink with
54<literal>targetdoc="adminguide"</literal>.
55When the document is processed, the processor
56first looks for a target dataset in the
57olink database starting with:</para>
58
59<literallayout><literal>&lt;document targetdoc="adminguide" lang="de"&gt;</literal>.
60</literallayout>
61
62<para>If there is no such element, then the
63<parameter>olink.lang.fallback.sequence</parameter>
64parameter is consulted.
65If its value is, for example, <quote>fr en</quote>, then the processor next
66looks for <literal>targetdoc="adminguide" lang="fr"</literal>, and
67then for <literal>targetdoc="adminguide" lang="en"</literal>.
68If there is still no match, it looks for
69<literal>targetdoc="adminguide"</literal> with no
70lang attribute.
71</para>
72
73<para>This parameter is useful when a set of documents is only
74partially translated, or is in the process of being translated.
75If a target of an olink has not yet been translated, then this
76parameter permits the processor to look for the document in
77other languages. This assumes the reader would rather have
78a link to a document in a different language than to have
79a broken link.
80</para>
81
82</refsection>
83</refentry>
Note: See TracBrowser for help on using the repository browser.