</xsl:if>
</head>
<body class="navigation">
- <xsl:call-template name="section-top-nav"/>
+ <xsl:call-template name="section-top-nav">
+ <xsl:with-param name="prev-target" select="'foil'"/>
+ <xsl:with-param name="next-target" select="'foil'"/>
+ </xsl:call-template>
</body>
</html>
</xsl:with-param>
</xsl:if>
</head>
<body class="navigation">
- <xsl:call-template name="foil-top-nav"/>
+ <xsl:call-template name="foil-top-nav">
+ <xsl:with-param name="prev-target" select="'foil'"/>
+ <xsl:with-param name="next-target" select="'foil'"/>
+ </xsl:call-template>
</body>
</html>
</xsl:with-param>
<!-- ============================================================ -->
<xsl:template name="section-top-nav">
+ <xsl:param name="prev-target" select="''"/>
+ <xsl:param name="next-target" select="''"/>
+
<xsl:variable name="nextfoil">
<xsl:apply-templates select="foil[1]" mode="filename"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$prevfoil != ''">
<a href="{$prevfoil}">
+ <xsl:if test="$prev-target != ''">
+ <xsl:attribute name="target">
+ <xsl:value-of select="$prev-target"/>
+ </xsl:attribute>
+ </xsl:if>
<img alt="Prev" border="0">
<xsl:attribute name="src">
<xsl:call-template name="graphics.dir"/>
<xsl:choose>
<xsl:when test="$nextfoil != ''">
<a href="{$nextfoil}">
+ <xsl:if test="$next-target != ''">
+ <xsl:attribute name="target">
+ <xsl:value-of select="$next-target"/>
+ </xsl:attribute>
+ </xsl:if>
<img alt="Next" border="0">
<xsl:attribute name="src">
<xsl:call-template name="graphics.dir"/>
</xsl:template>
<xsl:template name="foil-top-nav">
+ <xsl:param name="prev-target" select="''"/>
+ <xsl:param name="next-target" select="''"/>
+
<xsl:variable name="section" select="ancestor::section"/>
<xsl:variable name="nextfoil">
<xsl:choose>
<xsl:when test="$prevfoil != ''">
<a href="{$prevfoil}">
+ <xsl:if test="$prev-target != ''">
+ <xsl:attribute name="target">
+ <xsl:value-of select="$prev-target"/>
+ </xsl:attribute>
+ </xsl:if>
<img alt="Prev" border="0">
<xsl:attribute name="src">
<xsl:call-template name="graphics.dir"/>
<xsl:choose>
<xsl:when test="$nextfoil != ''">
<a href="{$nextfoil}">
+ <xsl:if test="$next-target != ''">
+ <xsl:attribute name="target">
+ <xsl:value-of select="$next-target"/>
+ </xsl:attribute>
+ </xsl:if>
<img alt="Next" border="0">
<xsl:attribute name="src">
<xsl:call-template name="graphics.dir"/>