source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/prefer.internal.olink.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: 2.9 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="prefer.internal.olink">
7<refmeta>
8<refentrytitle>prefer.internal.olink</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>prefer.internal.olink</refname>
13<refpurpose>Prefer a local olink reference to an external reference</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="prefer.internal.olink.frag">
18<xsl:param name="prefer.internal.olink" select="0"/>
19</src:fragment>
20</refsynopsisdiv>
21
22<refsection><info><title>Description</title></info>
23
24<para>If you are re-using XML content modules in multiple documents,
25you may want to redirect some of your olinks. This parameter
26permits you to redirect an olink to the current document.
27</para>
28
29<para>For example: you are writing documentation for a product,
30which includes 3 manuals: a little installation
31booklet (booklet.xml), a user
32guide (user.xml), and a reference manual (reference.xml).
33All 3 documents begin with the same introduction section (intro.xml) that
34contains a reference to the customization section (custom.xml) which is
35included in both user.xml and reference.xml documents.
36</para>
37
38<para>How do you write the link to custom.xml in intro.xml
39so that it is interpreted correctly in all 3 documents?</para>
40<itemizedlist>
41<listitem><para>If you use xref, it will fail in user.xml.</para>
42</listitem>
43<listitem><para>If you use olink (pointing to reference.xml),
44the reference in user.xml
45will point to the customization section of the reference manual, while it is
46actually available in user.xml.</para>
47</listitem>
48</itemizedlist>
49
50<para>If you set the <parameter>prefer.internal.olink</parameter>
51parameter to a non-zero value, then the processor will
52first look in the olink database
53for the olink's <tag>targetptr</tag> attribute value
54in document matching the <parameter>current.docid</parameter>
55parameter value. If it isn't found there, then
56it tries the document in the database
57with the <tag>targetdoc</tag>
58value that matches the olink's <tag>targetdoc</tag>
59attribute.
60</para>
61
62<para>This feature permits an olink reference to resolve to
63the current document if there is an element
64with an id matching the olink's <tag>targetptr</tag>
65value. The current document's olink data must be
66included in the target database for this to work.</para>
67
68<caution>
69<para>There is a potential for incorrect links if
70the same <tag>id</tag> attribute value is used for different
71content in different documents.
72Some of your olinks may be redirected to the current document
73when they shouldn't be. It is not possible to control
74individual olink instances.</para>
75</caution>
76
77</refsection>
78</refentry>
Note: See TracBrowser for help on using the repository browser.