Pdf bookmarks
******************************************************************** -->
-<xsl:variable name="collapse.subtree">
- <xsl:choose>
- <xsl:when test="$bookmarks.collapse != 0">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
-</xsl:variable>
-
<xsl:template match="*" mode="xep.outline">
<xsl:apply-templates select="*" mode="xep.outline"/>
</xsl:template>
<xsl:when test="self::index and $generate.index = 0"/>
<xsl:when test="parent::*">
<rx:bookmark internal-destination="{$id}">
- <xsl:attribute name="collapse-subtree">
- <xsl:value-of select="$collapse.subtree"/>
- </xsl:attribute>
<rx:bookmark-label>
<xsl:value-of select="normalize-space($bookmark-label)"/>
</rx:bookmark-label>
<xsl:otherwise>
<xsl:if test="$bookmark-label != ''">
<rx:bookmark internal-destination="{$id}">
- <xsl:attribute name="collapse-subtree">
- <xsl:value-of select="$collapse.subtree"/>
- </xsl:attribute>
<rx:bookmark-label>
<xsl:value-of select="normalize-space($bookmark-label)"/>
</rx:bookmark-label>