index.links.to.section.xml 2.7 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="index.links.to.section">
  7. <refmeta>
  8. <refentrytitle>index.links.to.section</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>index.links.to.section</refname>
  13. <refpurpose>HTML index entries link to container section title</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="index.links.to.section.frag">
  17. <xsl:param name="index.links.to.section" select="1"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>If zero, then an index entry in an index links
  22. directly to the location of the
  23. generated <tag>anchor</tag> that is output
  24. for the indexterm. If two identical indexterm elements
  25. exist in the same section, then both entries appear
  26. in the index with the same title but link to different
  27. locations.</para>
  28. <para>If non-zero, then an index entry in an index links to the
  29. section title containing the <tag>indexterm</tag>, rather than
  30. directly to the <tag>anchor</tag> output for the indexterm.
  31. Duplicate indexterm entries in the same section are dropped.
  32. </para>
  33. <para>The default value is 1, so index entries link to
  34. section titles by default.</para>
  35. <para>In both cases, the link text in an index entry is the
  36. title of the section containing the indexterm.
  37. That is because HTML does not have numbered pages.
  38. It also provides the reader with context information
  39. for each link.</para>
  40. <para>This parameter lets you choose which style of
  41. index linking you want. </para>
  42. <itemizedlist>
  43. <listitem>
  44. <para>When set to 0, an index entry takes you
  45. to the precise location of its corresponding indexterm.
  46. However, if you have a lot of duplicate
  47. entries in sections, then you have a lot of duplicate
  48. titles in the index, which makes it more cluttered.
  49. The reader may not recognize why duplicate titles
  50. appear until they follow the links. Also, the links
  51. may land the reader in the middle of a section where the
  52. section title is not visible, which may also be
  53. confusing to the reader.</para>
  54. </listitem>
  55. <listitem>
  56. <para>When set to 1, an index entry link is
  57. less precise, but duplicate titles in the
  58. index entries are eliminated.
  59. Landing on the section title location may confirm the reader's
  60. expectation that a link that
  61. shows a section title will take them to that section title,
  62. not a location within the section.
  63. </para>
  64. </listitem>
  65. </itemizedlist>
  66. </refsection>
  67. </refentry>