activate.external.olinks.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="activate.external.olinks">
  7. <refmeta>
  8. <refentrytitle>activate.external.olinks</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>activate.external.olinks</refname>
  13. <refpurpose>Make external olinks into active links</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="activate.external.olinks.frag">
  17. <xsl:param name="activate.external.olinks" select="1"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>If <parameter>activate.external.olinks</parameter> is nonzero
  22. (the default), then any olinks that reference another document
  23. become active links that can be clicked on to follow the link.
  24. If the parameter is set to zero, then external olinks
  25. will have the appropriate link text generated, but the link is
  26. not made active. Olinks to destinations in
  27. the current document remain active.</para>
  28. <para>To make an external olink active for HTML
  29. outputs, the link text is wrapped in an <tag>a</tag>
  30. element with an <tag>href</tag> attribute. To
  31. make an external olink active for FO outputs, the link text is
  32. wrapped in an <tag>fo:basic-link</tag> element with an
  33. <tag>external-destination</tag> attribute.</para>
  34. <para>This parameter is useful when you need external olinks
  35. to resolve but not be clickable. For example, if documents
  36. in a collection are available independently of each other,
  37. then having active links between them could lead to
  38. unresolved links when a given target document is missing.</para>
  39. <para>The epub stylesheets set this parameter to zero by default
  40. because there is no standard linking mechanism between Epub documents.</para>
  41. <para>If external links are made inactive, you should
  42. consider setting the
  43. stylesheet parameter <parameter>olink.doctitle</parameter>
  44. to <literal>yes</literal>. That will append the external document's
  45. title to the link text, making it easier for the user to
  46. locate the other document.</para>
  47. <para>An olink is considered external when the
  48. <parameter>current.docid</parameter> stylesheet parameter
  49. is set to some value, and the olink's <tag>targetdoc</tag>
  50. attribute has a different value. If the two values
  51. match, then the link is considered internal. If the
  52. <parameter>current.docid</parameter> parameter is blank, or
  53. the <tag>olink</tag> element does not have a <tag>targetdoc</tag> attribute,
  54. then the link is considered to be internal and will become
  55. an active link.</para>
  56. <para>See also <parameter>olink.doctitle</parameter>,
  57. <parameter>prefer.internal.olink</parameter>.</para>
  58. </refsection>
  59. </refentry>