Debian Codegraph @

docs/xref.xml

raw
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4 <section id="sec-xref">
5 <title>Using XRefsyle and Olinks</title>
6
7 <para>Since version 0.2.7 you can use the <sgmltag>xrefstyle</sgmltag> attribute
8 like you would do with the DocBook Project stylesheets for HTML output.</para>
9
10 <para>Furthermore, you can also use <sgmltag>olink</sgmltag>s. Note that
11 Olinking is used in the PDF version of this manual,
12 in <xref linkend="sec-changelog"/>.</para>
13
14 <para>Actually, the common DocBook Project stylesheets version 1.72 are now
15 used by dblatex to handle all of these features.</para>
16
17 <para>These features are fully described in the <ulink url="http://www.sagehill.net/docbookxsl/index.html">DocBook XSL: The Complete Guide</ulink> book by Bob Stayton. In particular, the following sections cover these topics:
18
19 <itemizedlist>
20 <listitem><para><ulink url="http://www.sagehill.net/docbookxsl/CustomXrefs.html"/> explains how to use <sgmltag>xrefstyle</sgmltag>.</para></listitem>
21
22 <listitem><para><ulink url="http://www.sagehill.net/docbookxsl/Olinking.html"/> explains how to use <sgmltag>olink</sgmltag>s.</para></listitem>
23 </itemizedlist>
24 </para>
25
26 <section id="sec-ulink-style">
27 <title>Specific xrefstyle for <sgmltag>ulink</sgmltag></title>
28
29 <para>Dblatex defines a template that can be applied through
30 the xrefstyle attribute to format an <sgmltag>ulink</sgmltag>. The template has
31 the following general form:
32 <literal>url[.{show|hide}][.{after|infoot}]</literal></para>
33
34 <para>The principle is that the <literal>show</literal> and
35 <literal>hide</literal> parts override locally for this ulink the
36 <parameter>ulink.show</parameter> parameter,
37 and the <literal>after</literal> and
38 <literal>infoot</literal> parts override locally the
39 <parameter>ulink.footnotes</parameter> parameter.</para>
40
41 <para>When only one part is defined, only one setup is overriden, and the other setup depends on the corresponding global parameter.</para>
42
43 <para>See <xref linkend="ulink.show"/> to have several examples of use of the ulink xrefstyle template.</para>
44
45 </section>
46
47 </section>