index.on.role.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.on.role">
  7. <refmeta>
  8. <refentrytitle>index.on.role</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>index.on.role</refname>
  13. <refpurpose>Select indexterms based on <tag class="attribute">role</tag> value</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="index.on.role.frag">
  17. <xsl:param name="index.on.role" select="0"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>
  22. If non-zero,
  23. then an <tag>index</tag> element that has a
  24. <tag class="attribute">role</tag> attribute
  25. value will contain only those <tag>indexterm</tag>
  26. elements with a matching role value.
  27. If an <tag>index</tag> has no <tag class="attribute">role</tag>
  28. attribute or it is blank, then the index will contain
  29. all <tag>indexterm</tag>s in the current scope.
  30. </para>
  31. <para>
  32. If <literal>index.on.role</literal> is zero, then the
  33. <tag class="attribute">role</tag> attribute has no effect
  34. on selecting indexterms for an index.
  35. </para>
  36. <para>If you are using DocBook version 4.3 or later, you should
  37. use the <tag class="attribute">type</tag> attribute instead of <tag class="attribute">role</tag>
  38. on <tag>indexterm</tag> and <tag>index</tag>,
  39. and set the <parameter>index.on.type</parameter> to a nonzero
  40. value.
  41. </para>
  42. </refsection>
  43. </refentry>