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="man.base.url.for.relative.links">
8 <refentrytitle>man.base.url.for.relative.links</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
12 <refname>man.base.url.for.relative.links</refname>
13 <refpurpose>Specifies a base URL for relative links</refpurpose>
17 <src:fragment xml:id="man.base.url.for.relative.links.frag"><xsl:param name="man.base.url.for.relative.links">[set $man.base.url.for.relative.links]/</xsl:param></src:fragment>
20 <refsection><info><title>Description</title></info>
22 <para>For any “notesource” listed in the auto-generated
23 “NOTES” section of output man pages (which is generated when
25 <parameter>man.endnotes.list.enabled</parameter> parameter
26 is non-zero), if the notesource is a link source with a
27 relative URI, the URI is displayed in output with the value
29 <parameter>man.base.url.for.relative.links</parameter>
30 parameter prepended to the value of the link URI.</para>
33 <para>A link source is an notesource that references an
37 <para>a <tag>ulink</tag> element with a <tag
38 class="attribute">url</tag> attribute</para>
41 <para>any element with an <tag
42 class="attribute">xlink:href</tag> attribute</para>
45 <para>an <tag>imagedata</tag>, <tag>audiodata</tag>, or
46 <tag>videodata</tag> element</para>
52 <para>If you use relative URIs in link sources in your DocBook
53 <tag>refentry</tag> source, and you leave
54 <parameter>man.base.url.for.relative.links</parameter>
55 unset, the relative links will appear “as is” in the “Notes”
56 section of any man-page output generated from your source.
57 That’s probably not what you want, because such relative
58 links are only usable in the context of HTML output. So, to
59 make the links meaningful and usable in the context of
60 man-page output, set a value for
61 <parameter>man.base.url.for.relative.links</parameter> that
62 points to the online version of HTML output generated from
63 your DocBook <tag>refentry</tag> source. For
66 ><xsl:param name="man.base.url.for.relative.links"
67 >http://www.kernel.org/pub/software/scm/git/docs/</xsl:param></programlisting>
72 <refsection><info><title>Related Parameters</title></info>
73 <para><parameter>man.endnotes.list.enabled</parameter></para>