[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Chunking XHTML without navigation for book "part" tags
Hi, Thanks, Bob. I didn't really want to modify the existing templates, so I figured out another way: <xsl:template name="header.navigation"> <xsl:param name="prev" /> <xsl:param name="next" /> <xsl:param name="nav.context" /> <div class="navigation"> <xsl:if test="position() = 2"> <xsl:apply-templates select="../preceding-sibling::part[1]/chapter[position()=last()]" mode="link-prev-part-chapter" /> </xsl:if> <xsl:if test="position() = last()"> <xsl:apply-templates select="../following-sibling::part[1]/chapter[position()=1]" mode="link-next-part-chapter" /> </xsl:if> <xsl:apply-templates select="$prev" mode="prev" /> <xsl:apply-templates select="$next" mode="next" /> </div> </xsl:template> This basically just looks at the position of the chapter relative to the part and applies the appropriate template. No copying necessary. It might not be elegant, but it works. Thank you.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]