<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>index.on.type</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="toc_index.html" title="ToC/LoT/Index Generation"><link rel="prev" href="index.method.html" title="index.method"><link rel="next" href="index.on.role.html" title="index.on.role"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">index.on.type</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.method.html">Prev</a> </td><th width="60%" align="center">ToC/LoT/Index Generation</th><td width="20%" align="right"> <a accesskey="n" href="index.on.role.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="index.on.type"></a><div class="titlepage"></div> <div class="refnamediv"><h2><span class="refentrytitle">index.on.type</span></h2><p> index.on.type — Select indexterms based on <code class="sgmltag-attribute">type</code> attribute value </p></div> <div class="refsynopsisdiv"><h2>Synopsis</h2> <a name="index.on.type.frag"></a><pre class="programlisting"> <xsl:param name="index.on.type" select="0"></xsl:param> </pre> </div> <div class="refsection"><a name="idp3580464"></a><h2>Description</h2> <p> If non-zero, then an <a href="http://docbook.org/tdg5/en/html/index.html"><code class="sgmltag-element">index</code></a> element that has a <code class="sgmltag-attribute">type</code> attribute value will contain only those <a href="http://docbook.org/tdg5/en/html/indexterm.html"><code class="sgmltag-element">indexterm</code></a> elements with a matching <code class="sgmltag-attribute">type</code> attribute value. If an <a href="http://docbook.org/tdg5/en/html/index.html"><code class="sgmltag-element">index</code></a> has no <code class="sgmltag-attribute">type</code> attribute or it is blank, then the index will contain all <a href="http://docbook.org/tdg5/en/html/indexterm.html"><code class="sgmltag-element">indexterm</code></a>s in the current scope. </p> <p> If <code class="literal">index.on.type</code> is zero, then the <code class="sgmltag-attribute">type</code> attribute has no effect on selecting indexterms for an index. </p> <p>For those using DocBook version 4.2 or earlier, the <code class="sgmltag-attribute">type</code> attribute is not available for index terms. However, you can achieve the same effect by using the <code class="sgmltag-attribute">role</code> attribute in the same manner on <a href="http://docbook.org/tdg5/en/html/indexterm.html"><code class="sgmltag-element">indexterm</code></a> and <a href="http://docbook.org/tdg5/en/html/index.html"><code class="sgmltag-element">index</code></a>, and setting the stylesheet parameter <a href="../html/index.on.role.html"><em class="parameter"><code>index.on.role</code></em></a> to a nonzero value. </p> </div> </div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index.method.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="toc_index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="index.on.role.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">index.method </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> index.on.role</td></tr></table></div></body></html>