fix links to paper book (fixes #6)
[exim-website.git] / templates / web / docs.xsl
index b703dd5c6803331a6827422bfc128d665edf98d1..e75b9bacdf8bb77fdaefb2dc8222d08caac876a3 100644 (file)
@@ -1,20 +1,30 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-       
+
        <!-- WRAPPER -->
                <xsl:import href="../wrapper.xsl"/>
                <xsl:template match="/"> <xsl:apply-imports/> </xsl:template>
-               
+
                <xsl:variable name="docroot" select="'.'"/>
 
        <!-- Title -->
                <xsl:variable name="html.head.title" select="'Documentation for Exim'"/>
 
-        <!-- Canonical -->
-                <xsl:variable name="html.head.append">
-                        <link rel="canonical" href="http://www.exim.org/docs.html"/>
-                </xsl:variable>
+
+       <xsl:variable name="html.head.append">
+
+               <!-- Canonical -->
+                       <link rel="canonical" href="https://www.exim.org/docs.html"/>
+
+               <!-- CSS -->
+                       <link rel="stylesheet" type="text/css" href="docs.css"/>
+       </xsl:variable>
+
+       <!-- JavaScript -->
+               <xsl:variable name="html.body.append">
+                       <script type="text/javascript" src="docs.js"/>
+               </xsl:variable>
 
        <!-- CONTENT -->
                <xsl:template name="content">
                                </h2>
 
                        <!-- General Doc Info -->
-                               <p>Exim has a set of documentation released with it. A text file of the main documentation is released as part of the Exim tar archive. Additionally, postscript and texinfo forms of the documentation are available in separate tar archives on the ftp sites. There is also a <a href="http://www.uit.co.uk/exim-book/">book</a>.</p>
+                               <p>Exim has a set of documentation released with it. A text file of the main documentation is released as part of the Exim tar archive. Additionally, postscript and texinfo forms of the documentation are available in separate tar archives on the ftp sites. There is also a <a href="https://www.uit.co.uk/all-books/the-exim-smtp-mail-server.html">book</a>.</p>
 
-                               <p>New user documentation can be found at the <a href="http://www.exim-new-users.co.uk/">Exim New Users site</a></p>
-
-                               <p>User supported documentation, FAQs and hints can be found in the <a href="http://wiki.exim.org/">wiki</a>.</p>
+                               <p>User supported documentation, FAQs and hints can be found in the <a href="https://wiki.exim.org/">wiki</a>.</p>
 
                                <p>There are 3 main sets of documentation for Exim, all of which are also available below in html form.</p>
 
                                        <a href="{$docroot}/exim-html-current/doc/html/spec_html/index.html">
                                                <xsl:text>The Exim Specification - Version </xsl:text>
                                                <xsl:value-of select="/content/current_version"/>
+                                               <xsl:text> (HTML)</xsl:text>
                                        </a>
                                        <xsl:text> </xsl:text>
                                        <a href="{$docroot}/exim-pdf-current/doc/spec.pdf">(PDF)</a>
 
                                        <xsl:text> - The master documentation for Exim containing all required detail to install, configure and use Exim. </xsl:text>
                                        <span class="changed">Changes to the documentation (normally reflecting changes to the functionality of Exim) are shown on a green background like this segment.</span>
+                                       <br/><select name="spec_old_version">
+                                               <option value="">View Older Versions</option>
+                                               <xsl:for-each select="/content/old_versions">
+                                                       <option value="{text()}"><xsl:value-of select="text()"/></option>
+                                               </xsl:for-each>
+                                       </select>
                                </p>
 
                                <p class="manual_info">
                                        <a href="{$docroot}/exim-html-current/doc/html/spec_html/filter.html">
                                                <xsl:text>The Exim Filter Specification - Version </xsl:text>
                                                <xsl:value-of select="/content/current_version"/>
+                                               <xsl:text> (HTML)</xsl:text>
                                        </a>
                                        <xsl:text> </xsl:text>
                                        <a href="{$docroot}/exim-pdf-current/doc/filter.pdf">(PDF)</a>
                                        <xsl:text> - Additional information on the Exim filter language.</xsl:text>
+                                       <br/><select name="filter_old_version">
+                                               <option value="">View Older Versions</option>
+                                               <xsl:for-each select="/content/old_versions">
+                                                       <option value="{text()}"><xsl:value-of select="text()"/></option>
+                                               </xsl:for-each>
+                                       </select>
                                </p>
 
                        <!-- HOWTOs -->
                                        <xsl:text> - see the </xsl:text>
                                        <a href="{$docroot}/mirrors.html">download</a>
                                        <xsl:text> pages.</xsl:text>
-                               </p>    
+                               </p>
 
                        <!-- Copies -->
                                <h3>Copies of Documentation</h3>