Blame docs/xref.xml

Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
Packit 0f19cf
<section id="sec-xref">
Packit 0f19cf
<title>Using XRefsyle and Olinks</title>
Packit 0f19cf
Packit 0f19cf
<para>Since version 0.2.7 you can use the <sgmltag>xrefstyle</sgmltag> attribute
Packit 0f19cf
like you would do with the DocBook Project stylesheets for HTML output.</para>
Packit 0f19cf
Packit 0f19cf
<para>Furthermore, you can also use <sgmltag>olink</sgmltag>s. Note that
Packit 0f19cf
Olinking is used in the PDF version of this manual,
Packit 0f19cf
in <xref linkend="sec-changelog"/>.</para>
Packit 0f19cf
Packit 0f19cf
<para>Actually, the common DocBook Project stylesheets version 1.72 are now
Packit 0f19cf
used by dblatex to handle all of these features.</para>
Packit 0f19cf
Packit 0f19cf
<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:
Packit 0f19cf
Packit 0f19cf
<itemizedlist>
Packit 0f19cf
<listitem><para><ulink url="http://www.sagehill.net/docbookxsl/CustomXrefs.html"/> explains how to use <sgmltag>xrefstyle</sgmltag>.</para></listitem>
Packit 0f19cf
Packit 0f19cf
<listitem><para><ulink url="http://www.sagehill.net/docbookxsl/Olinking.html"/> explains how to use <sgmltag>olink</sgmltag>s.</para></listitem>
Packit 0f19cf
</itemizedlist>
Packit 0f19cf
</para>
Packit 0f19cf
Packit 0f19cf
<section id="sec-ulink-style">
Packit 0f19cf
<title>Specific xrefstyle for <sgmltag>ulink</sgmltag></title>
Packit 0f19cf
Packit 0f19cf
<para>Dblatex defines a template that can be applied through
Packit 0f19cf
the xrefstyle attribute to format an <sgmltag>ulink</sgmltag>. The template has
Packit 0f19cf
the following general form: 
Packit 0f19cf
<literal>url[.{show|hide}][.{after|infoot}]</literal></para>
Packit 0f19cf
Packit 0f19cf
<para>The principle is that the <literal>show</literal> and
Packit 0f19cf
<literal>hide</literal> parts override locally for this ulink the
Packit 0f19cf
<parameter>ulink.show</parameter> parameter,
Packit 0f19cf
and the <literal>after</literal> and
Packit 0f19cf
<literal>infoot</literal> parts override locally the
Packit 0f19cf
<parameter>ulink.footnotes</parameter> parameter.</para>
Packit 0f19cf
Packit 0f19cf
<para>When only one part is defined, only one setup is overriden, and the other setup depends on the corresponding global parameter.</para>
Packit 0f19cf
Packit 0f19cf
<para>See <xref linkend="ulink.show"/> to have several examples of use of the ulink xrefstyle template.</para>
Packit 0f19cf
Packit 0f19cf
</section>
Packit 0f19cf
Packit 0f19cf
</section>