<!ENTITY sep '" "'>
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())
- and ($role = @role or string-length($role) = 0)'>
+ and ($role = @role or $type = @type or
+ (string-length($role) = 0 and string-length($type) = 0))'>
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
</xsl:if>
</xsl:variable>
+ <xsl:variable name="type">
+ <xsl:if test="$index.on.type != 0">
+ <xsl:value-of select="@type"/>
+ </xsl:if>
+ </xsl:variable>
+
<xsl:variable name="terms"
select="//indexterm[count(.|key('group-code',
i:group-index(&primary;))[&scope;][1]) = 1
<xsl:apply-templates select="$terms" mode="index-div">
<xsl:with-param name="scope" select="$scope"/>
<xsl:with-param name="role" select="$role"/>
+ <xsl:with-param name="type" select="$type"/>
<xsl:sort select="i:group-index(&primary;)" data-type="number"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="indexterm" mode="index-div">
<xsl:param name="scope" select="."/>
<xsl:param name="role" select="''"/>
+ <xsl:param name="type" select="''"/>
<xsl:variable name="key"
select="i:group-index(&primary;)"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
<xsl:with-param name="scope" select="$scope"/>
<xsl:with-param name="role" select="$role"/>
+ <xsl:with-param name="type" select="$type"/>
</xsl:apply-templates>
</fo:block>
</fo:block>
../params/chunk.first.sections.xml \
../params/chunk.quietly.xml \
../params/chunk.section.depth.xml \
+ ../params/chunk.separate.lots.xml \
../params/chunk.toc.xml \
../params/chunker.output.cdata-section-elements.xml \
../params/chunker.output.doctype-public.xml \
../params/htmlhelp.title.xml \
../params/htmlhelp.use.hhk.xml \
../params/htmlhelp.window.geometry.xml \
+ ../params/index.on.role.xml \
+ ../params/index.on.type.xml \
../params/inherit.keywords.xml \
../params/label.from.part.xml \
../params/linenumbering.everyNth.xml \
<!ENTITY sep '" "'>
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())
- and ($role = @role or string-length($role) = 0)'>
+ and ($role = @role or $type = @type or
+ (string-length($role) = 0 and string-length($type) = 0))'>
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
</xsl:if>
</xsl:variable>
+ <xsl:variable name="type">
+ <xsl:if test="$index.on.type != 0">
+ <xsl:value-of select="@type"/>
+ </xsl:if>
+ </xsl:variable>
+
<xsl:variable name="terms"
select="//indexterm[count(.|key('group-code',
i:group-index(&primary;))[&scope;][1]) = 1
<xsl:apply-templates select="$terms" mode="index-div">
<xsl:with-param name="scope" select="$scope"/>
<xsl:with-param name="role" select="$role"/>
+ <xsl:with-param name="type" select="$type"/>
<xsl:sort select="i:group-index(&primary;)" data-type="number"/>
</xsl:apply-templates>
</div>
<xsl:template match="indexterm" mode="index-div">
<xsl:param name="scope" select="."/>
<xsl:param name="role" select="''"/>
+ <xsl:param name="type" select="''"/>
<xsl:variable name="key"
select="i:group-index(&primary;)"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
<xsl:with-param name="scope" select="$scope"/>
<xsl:with-param name="role" select="$role"/>
+ <xsl:with-param name="type" select="$type"/>
</xsl:apply-templates>
</dl>
</div>