insert.olink.pdf.frag.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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="insert.olink.pdf.frag">
  7. <refmeta>
  8. <refentrytitle>insert.olink.pdf.frag</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>insert.olink.pdf.frag</refname>
  13. <refpurpose>Add fragment identifiers for links into PDF files</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="insert.olink.pdf.frag.frag">
  17. <xsl:param name="insert.olink.pdf.frag" select="0"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>The value of this parameter determines whether
  22. the cross reference URIs to PDF documents made with
  23. <tag>olink</tag> will
  24. include fragment identifiers.
  25. </para>
  26. <para>When forming a URI to link to a PDF document,
  27. a fragment identifier (typically a '#' followed by an
  28. id value) appended to the PDF filename can be used by
  29. the PDF viewer to open
  30. the PDF file to a location within the document instead of
  31. the first page.
  32. However, not all PDF files have id
  33. values embedded in them, and not all PDF viewers can
  34. handle fragment identifiers.
  35. </para>
  36. <para>If <parameter>insert.olink.pdf.frag</parameter> is set
  37. to a non-zero value, then any olink targeting a
  38. PDF file will have the fragment identifier appended to the URI.
  39. The URI is formed by concatenating the value of the
  40. <parameter>olink.base.uri</parameter> parameter, the
  41. value of the <tag class="attribute">baseuri</tag>
  42. attribute from the <tag class="element">document</tag>
  43. element in the olink database with the matching
  44. <tag class="attribute">targetdoc</tag> value,
  45. and the value of the <tag class="attribute">href</tag>
  46. attribute for the targeted element in the olink database.
  47. The <tag class="attribute">href</tag> attribute
  48. contains the fragment identifier.
  49. </para>
  50. <para>If <parameter>insert.olink.pdf.frag</parameter> is set
  51. to zero (the default value), then
  52. the <tag class="attribute">href</tag> attribute
  53. from the olink database
  54. is not appended to PDF olinks, so the fragment identifier is left off.
  55. A PDF olink is any olink for which the
  56. <tag class="attribute">baseuri</tag> attribute
  57. from the matching <tag class="element">document</tag>
  58. element in the olink database ends with '.pdf'.
  59. Any other olinks will still have the fragment identifier added.
  60. </para>
  61. </refsection>
  62. </refentry>