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.type">
8 <refentrytitle>index.on.type</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
12 <refname>index.on.type</refname>
13 <refpurpose>Select indexterms based on <tag class="attribute">type</tag>
14 attribute value</refpurpose>
18 <src:fragment xml:id="index.on.type.frag">
19 <xsl:param name="index.on.type" select="0"/>
23 <refsection><info><title>Description</title></info>
27 then an <tag>index</tag> element that has a
28 <tag class="attribute">type</tag> attribute
29 value will contain only those <tag>indexterm</tag>
30 elements with a matching <tag class="attribute">type</tag> attribute value.
31 If an <tag>index</tag> has no <tag class="attribute">type</tag>
32 attribute or it is blank, then the index will contain
33 all <tag>indexterm</tag>s in the current scope.
37 If <literal>index.on.type</literal> is zero, then the
38 <tag class="attribute">type</tag> attribute has no effect
39 on selecting indexterms for an index.
42 <para>For those using DocBook version 4.2 or earlier,
43 the <tag class="attribute">type</tag> attribute is not available
44 for index terms. However, you can achieve the same
45 effect by using the <tag class="attribute">role</tag> attribute
46 in the same manner on <tag>indexterm</tag>
47 and <tag>index</tag>, and setting the stylesheet parameter
48 <parameter>index.on.role</parameter> to a nonzero value.