<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
+ <xsl:when test="self::index and $generate.index = 0"/>
<xsl:when test="parent::*">
<fox:outline internal-destination="{$id}">
<fox:label>
<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
+ <xsl:when test="self::index and $generate.index = 0"/>
<xsl:when test="parent::*">
<fo:bookmark internal-destination="{$id}">
<fo:bookmark-title>
<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
+ <xsl:when test="self::index and $generate.index = 0"/>
<xsl:when test="parent::*">
<fo:bookmark internal-destination="{$id}">
<fo:bookmark-title>
<!-- Put the root element bookmark at the same level as its children -->
<!-- If the object is a set or book, generate a bookmark for the toc -->
-
<xsl:choose>
+ <xsl:when test="self::index and $generate.index = 0"/>
<xsl:when test="parent::*">
<rx:bookmark internal-destination="{$id}">
<rx:bookmark-label>