insert.olink.page.number.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.page.number">
  7. <refmeta>
  8. <refentrytitle>insert.olink.page.number</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
  10. <refmiscinfo class="other" otherclass="value">no</refmiscinfo>
  11. <refmiscinfo class="other" otherclass="value">yes</refmiscinfo>
  12. <refmiscinfo class="other" otherclass="value">maybe</refmiscinfo>
  13. </refmeta>
  14. <refnamediv>
  15. <refname>insert.olink.page.number</refname>
  16. <refpurpose>Turns page numbers in olinks on and off</refpurpose>
  17. </refnamediv>
  18. <refsynopsisdiv>
  19. <src:fragment xml:id="insert.olink.page.number.frag">
  20. <xsl:param name="insert.olink.page.number">no</xsl:param>
  21. </src:fragment>
  22. </refsynopsisdiv>
  23. <refsection><info><title>Description</title></info>
  24. <para>The value of this parameter determines if
  25. cross references made between documents with
  26. <tag>olink</tag> will
  27. include page number citations.
  28. In most cases this is only applicable to references in printed output.
  29. </para>
  30. <para>The parameter has three possible values.
  31. </para>
  32. <variablelist>
  33. <varlistentry>
  34. <term>no</term>
  35. <listitem><para>No page number references will be generated for olinks.
  36. </para></listitem>
  37. </varlistentry>
  38. <varlistentry>
  39. <term>yes</term>
  40. <listitem><para>Page number references will be generated
  41. for all <tag>olink</tag> references.
  42. The style of page reference may be changed
  43. if an <tag class="attribute">xrefstyle</tag>
  44. attribute is used.
  45. </para></listitem>
  46. </varlistentry>
  47. <varlistentry>
  48. <term>maybe</term>
  49. <listitem><para>Page number references will not be generated
  50. for an <tag>olink</tag> element unless
  51. it has an
  52. <tag class="attribute">xrefstyle</tag>
  53. attribute whose value specifies a page reference.
  54. </para></listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Olinks that point to targets within the same document
  58. are treated as <tag>xref</tag>s, and controlled by
  59. the <parameter>insert.xref.page.number</parameter> parameter.
  60. </para>
  61. <para>Page number references for olinks to
  62. external documents can only be inserted if the
  63. information exists in the olink database.
  64. This means each olink target element
  65. (<tag>div</tag> or <tag>obj</tag>)
  66. must have a <tag class="attribute">page</tag> attribute
  67. whose value is its page number in the target document.
  68. The XSL stylesheets are not able to extract that information
  69. during processing because pages have not yet been created in
  70. XSLT transformation. Only the XSL-FO processor knows what
  71. page each element is placed on.
  72. Therefore some postprocessing must take place to populate
  73. page numbers in the olink database.
  74. </para>
  75. </refsection>
  76. </refentry>