- <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
- <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
-
- <!-- Chapter Title -->
- <h2>
- <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
+ <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
+ <xsl:if test="next_url">
+ <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
+ </xsl:if>
+
+ <!-- Chapter Wrapper -->
+ <div id="chapter" class="chapter{@class}">
+
+ <xsl:if test="current_url">
+ <p id="old_version_warning">
+ <span class="closebar"><a href="#" title="Close">X</a></span>
+ <strong>WARNING:</strong>
+ <xsl:text> This documentation is for an old version of Exim (</xsl:text>
+ <a href="{current_url}">latest</a>
+ <xsl:text>)</xsl:text>
+ </p>
+ </xsl:if>
+
+ <!-- Chapter Title -->
+ <h2 id="{@id}" class="{@class}">
+ <a href="{this_url}">
+ <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
+ </a>