|preceding::refentry[1]
|preceding::colophon[1]
|preceding::article[1]
- |preceding::bibliography[parent::article or parent::book][1]
- |preceding::glossary[parent::article or parent::book][1]
+ |preceding::bibliography[parent::article or parent::book or parent::part][1]
+ |preceding::glossary[parent::article or parent::book or parent::part][1]
|preceding::index[$generate.index != 0]
- [parent::article or parent::book][1]
+ [parent::article or parent::book or parent::part][1]
|preceding::setindex[$generate.index != 0][1]
|ancestor::set
|ancestor::book[1]
|following::reference[1]
|following::refentry[1]
|following::colophon[1]
- |following::bibliography[parent::article or parent::book][1]
- |following::glossary[parent::article or parent::book][1]
+ |following::bibliography[parent::article or parent::book or parent::part][1]
+ |following::glossary[parent::article or parent::book or parent::part][1]
|following::index[$generate.index != 0]
- [parent::article or parent::book][1]
+ [parent::article or parent::book or parent::part][1]
|following::article[1]
|following::setindex[$generate.index != 0][1]
|descendant::book[1]
|descendant::chapter[1]
|descendant::appendix[1]
|descendant::article[1]
- |descendant::bibliography[parent::article or parent::book][1]
- |descendant::glossary[parent::article or parent::book][1]
+ |descendant::bibliography[parent::article or parent::book or parent::part][1]
+ |descendant::glossary[parent::article or parent::book or parent::part][1]
|descendant::index[$generate.index != 0]
- [parent::article or parent::book][1]
+ [parent::article or parent::book or parent::part][1]
|descendant::colophon[1]
|descendant::setindex[$generate.index != 0][1]
|descendant::part[1]
|preceding::refentry[1]
|preceding::colophon[1]
|preceding::article[1]
- |preceding::bibliography[parent::article or parent::book][1]
- |preceding::glossary[parent::article or parent::book][1]
+ |preceding::bibliography[parent::article or parent::book or parent::part][1]
+ |preceding::glossary[parent::article or parent::book or parent::part][1]
|preceding::index[$generate.index != 0]
- [parent::article or parent::book][1]
+ [parent::article or parent::book or parent::part][1]
|preceding::setindex[$generate.index != 0][1]
|ancestor::set
|ancestor::book[1]
|following::reference[1]
|following::refentry[1]
|following::colophon[1]
- |following::bibliography[parent::article or parent::book][1]
- |following::glossary[parent::article or parent::book][1]
+ |following::bibliography[parent::article or parent::book or parent::part][1]
+ |following::glossary[parent::article or parent::book or parent::part][1]
|following::index[$generate.index != 0]
[parent::article or parent::book][1]
|following::article[1]
|descendant::appendix[1]
|descendant::article[1]
|descendant::bibliography[parent::article or parent::book][1]
- |descendant::glossary[parent::article or parent::book][1]
+ |descendant::glossary[parent::article or parent::book or parent::part][1]
|descendant::index[$generate.index != 0]
[parent::article or parent::book][1]
|descendant::colophon[1]
|article
|reference|refentry
|book/glossary|article/glossary|part/glossary
- |book/bibliography|article/bibliography
+ |book/bibliography|article/bibliography|part/bibliography
|colophon">
<xsl:choose>
<xsl:when test="$onechunk != 0 and parent::*">
<xsl:template match="setindex
|book/index
- |article/index">
+ |article/index
+ |part/index">
<!-- some implementations use completely empty index tags to indicate -->
<!-- where an automatically generated index should be inserted. so -->
<!-- if the index is completely empty, skip it. -->
The root element
appendix
article
- bibliography in article or book
+ bibliography in article or part or book
book
chapter
colophon
- glossary in article or book
- index in article or book
+ glossary in article or part or book
+ index in article or part or book
part
preface
refentry
<xsl:when test="name($node)='refentry'">1</xsl:when>
<xsl:when test="name($node)='index' and $generate.index != 0
and (name($node/parent::*) = 'article'
- or name($node/parent::*) = 'book')">1</xsl:when>
+ or name($node/parent::*) = 'book'
+ or name($node/parent::*) = 'part'
+ )">1</xsl:when>
<xsl:when test="name($node)='bibliography'
and (name($node/parent::*) = 'article'
- or name($node/parent::*) = 'book')">1</xsl:when>
+ or name($node/parent::*) = 'book'
+ or name($node/parent::*) = 'part'
+ )">1</xsl:when>
<xsl:when test="name($node)='glossary'
and (name($node/parent::*) = 'article'
- or name($node/parent::*) = 'book')">1</xsl:when>
+ or name($node/parent::*) = 'book'
+ or name($node/parent::*) = 'part'
+ )">1</xsl:when>
<xsl:when test="name($node)='colophon'">1</xsl:when>
<xsl:when test="name($node)='book'">1</xsl:when>
<xsl:when test="name($node)='set'">1</xsl:when>