man.base.url.for.relative.links.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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">
  7. <refmeta>
  8. <refentrytitle>man.base.url.for.relative.links</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>man.base.url.for.relative.links</refname>
  13. <refpurpose>Specifies a base URL for relative links</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <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>
  17. </refsynopsisdiv>
  18. <refsection><info><title>Description</title></info>
  19. <para>For any “notesource” listed in the auto-generated
  20. “NOTES” section of output man pages (which is generated when
  21. the value of the
  22. <parameter>man.endnotes.list.enabled</parameter> parameter
  23. is non-zero), if the notesource is a link source with a
  24. relative URI, the URI is displayed in output with the value
  25. of the
  26. <parameter>man.base.url.for.relative.links</parameter>
  27. parameter prepended to the value of the link URI.</para>
  28. <note>
  29. <para>A link source is an notesource that references an
  30. external resource:
  31. <itemizedlist>
  32. <listitem>
  33. <para>a <tag>ulink</tag> element with a <tag
  34. class="attribute">url</tag> attribute</para>
  35. </listitem>
  36. <listitem>
  37. <para>any element with an <tag
  38. class="attribute">xlink:href</tag> attribute</para>
  39. </listitem>
  40. <listitem>
  41. <para>an <tag>imagedata</tag>, <tag>audiodata</tag>, or
  42. <tag>videodata</tag> element</para>
  43. </listitem>
  44. </itemizedlist>
  45. </para>
  46. </note>
  47. <para>If you use relative URIs in link sources in your DocBook
  48. <tag>refentry</tag> source, and you leave
  49. <parameter>man.base.url.for.relative.links</parameter>
  50. unset, the relative links will appear “as is” in the “Notes”
  51. section of any man-page output generated from your source.
  52. That’s probably not what you want, because such relative
  53. links are only usable in the context of HTML output. So, to
  54. make the links meaningful and usable in the context of
  55. man-page output, set a value for
  56. <parameter>man.base.url.for.relative.links</parameter> that
  57. points to the online version of HTML output generated from
  58. your DocBook <tag>refentry</tag> source. For
  59. example:
  60. <programlisting
  61. >&lt;xsl:param name="man.base.url.for.relative.links"
  62. >http://www.kernel.org/pub/software/scm/git/docs/&lt;/xsl:param></programlisting>
  63. </para>
  64. </refsection>
  65. <refsection><info><title>Related Parameters</title></info>
  66. <para><parameter>man.endnotes.list.enabled</parameter></para>
  67. </refsection>
  68. </refentry>