1 <?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <!-- Define display/content information -->
6 <xsl:output indent="yes"/>
7 <xsl:output encoding="UTF-8"/>
8 <xsl:output media-type="text/html"/>
9 <xsl:output omit-xml-declaration="yes"/>
10 <xsl:output doctype-public="XSLT-compat"/>
12 <!-- Define some variables -->
13 <xsl:variable name="docroot"/>
14 <xsl:variable name="html.head.title"/>
15 <xsl:variable name="html.head.description" select="'Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet.'"/>
16 <xsl:variable name="html.head.keywords" select="'exim,smtp,mta,email'"/>
17 <xsl:variable name="html.head.robots" select="'noodp,noydir,index,follow'"/>
18 <xsl:variable name="html.head.append"/>
19 <xsl:variable name="html.body.append"/>
20 <xsl:variable name="html.body.outer.append"/>
22 <!-- The main template code -->
23 <xsl:template match="/">
26 <link rel="stylesheet" type="text/css" href="{$staticroot}/css/common.css"/>
28 <meta name="author" content="The Exim Project. <https://www.exim.org/>"/>
29 <meta name="copyright" content="Copyright ©1995-2012 The Exim Project. All rights reserved"/>
30 <meta name="description" content="{$html.head.description}"/>
31 <meta name="keywords" content="{$html.head.keywords}"/>
32 <meta name="robots" content="{$html.head.robots}"/>
34 <!-- Mobile Safari (iPhone) - Reduce viewport to physical size of device -->
35 <meta name="viewport" content="width=device-width"/>
38 <xsl:value-of select="$html.head.title"/>
41 <xsl:copy-of select="$html.head.append"/>
44 <!-- Changed body classname from "no-js" to "with-js" for styling purposes -->
46 <script type="text/javascript"><![CDATA[document.body.className=(' '+document.body.className+' ').replace('no-js','with-js');]]></script>
51 <a href="{$docroot}">Exim Internet Mailer</a>
54 <!-- Outer Container -->
60 <ul id="nav_flow" class="nav">
61 <li> <a href="{$docroot}/index.html">Home</a> </li>
62 <li> <a href="{$docroot}/download.html">Download</a> </li>
63 <li> <a href="{$docroot}/docs.html">Documentation</a> </li>
64 <li> <a href="{$docroot}/maillist.html">Mailing Lists</a> </li>
65 <li> <a href="http://wiki.exim.org/">Wiki</a> </li>
66 <li> <a href="https://bugs.exim.org/">Bugs</a> </li>
67 <li> <a href="{$docroot}/static/doc/security">Security</a> </li>
68 <li> <a href="{$docroot}/credits.html">Credits</a> </li>
69 <li> <a href="{$docroot}/legal.html">Legal</a> </li>
74 <form action="https://encrypted.google.com/search" method="get">
75 <span class="search_field_container">
76 <input type="search" name="q" placeholder="Search Docs" class="search_field"/>
78 <input type="hidden" name="hl" value="en"/>
79 <input type="hidden" name="ie" value="UTF-8"/>
80 <input type="hidden" name="as_qdr" value="all"/>
81 <input type="hidden" name="q" value="site:www.exim.org"/>
82 <input type="hidden" name="q" value="inurl:exim-html-current"/>
87 <!-- MAIN CONTENT. This is the div that wraps around the other stylesheets -->
90 <xsl:call-template name="content"/>
95 <iframe id="branding" name="branding" src="{$docroot}/branding/branding.html" height="0" frameborder="no" scrolling="no"/>
100 <xsl:text>Website design by </xsl:text>
101 <a href="https://www.grepular.com/">Mike Cardwell</a>
102 <xsl:text>.</xsl:text>
106 <div class="left_bar"/>
107 <div class="right_bar"/>
109 <!-- Append anything to the outer container? -->
110 <xsl:copy-of select="$html.body.outer.append"/>
113 <!-- Load latest version of jQuery 1.6 from the Google CDN -->
114 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
116 <!-- Local JavaScript -->
117 <script type="text/javascript" src="{$staticroot}/js/common.js"></script>
119 <xsl:copy-of select="$html.body.append"/>
126 <!-- Quote Element -->
127 <xsl:template match="quote">
128 <xsl:text>“</xsl:text><xsl:apply-templates match="*"/><xsl:text>”</xsl:text>
131 <!-- Random Docbook Elements -->
132 <xsl:template match="filename | emphasis | option | command | function">
133 <span class="docbook_{name()}"> <xsl:apply-templates/> </span>
136 <!-- Literal Element -->
137 <xsl:template match="literal">
138 <code class="docbook_literal"> <xsl:apply-templates/> </code>
140 <xsl:template match="literallayout">
141 <div class="docbook_literallayout"> <pre> <xsl:apply-templates/> </pre> </div>
144 <!-- ULink Element -->
145 <xsl:template match="ulink">
146 <a href="{text()}"> <xsl:value-of select="text()"/> </a>
149 <!-- XREF (Fixed up in the Perl) -->
150 <xsl:template match="xref">
151 <a href="{@url}" title="{@chapter_id}. {@chapter_title}">
153 <xsl:when test="@section_id">
155 <xsl:when test="@longref">
156 <xsl:value-of select="@chapter_title"/>
158 <xsl:value-of select="concat(' [',@section_title,']')"/>
162 <xsl:value-of select="concat(@chapter_id,'.',@section_id)"/>
168 <xsl:when test="@longref">
169 <xsl:value-of select="@chapter_title"/>
172 <xsl:value-of select="@chapter_id"/>
181 <xsl:template match="para">
183 <xsl:if test="@revisionflag!=''"><xsl:attribute name="class">changed</xsl:attribute></xsl:if>
184 <xsl:apply-templates/>
189 <xsl:template match="itemizedlist"> <ul> <xsl:apply-templates/> </ul> </xsl:template>
190 <xsl:template match="itemizedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
191 <xsl:template match="orderedlist"> <ol> <xsl:apply-templates/> </ol> </xsl:template>
192 <xsl:template match="orderedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
193 <xsl:template match="variablelist"> <dl> <xsl:apply-templates/> </dl> </xsl:template>
194 <xsl:template match="variablelist/varlistentry/term"> <dt> <xsl:apply-templates/> </dt> </xsl:template>
195 <xsl:template match="variablelist/varlistentry/listitem"> <dd> <xsl:apply-templates/> </dd> </xsl:template>
198 <xsl:template match="informaltable"> <table> <xsl:apply-templates/> </table> </xsl:template>
199 <xsl:template match="tbody/row"> <tr> <xsl:apply-templates/> </tr> </xsl:template>
200 <xsl:template match="row/entry"> <td> <xsl:apply-templates/> </td> </xsl:template>
201 <xsl:template match="tgroup|tbody"> <xsl:apply-templates/> </xsl:template>
204 <xsl:template match="indexterm|title|titleabbrev|current_version"/>