1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Define display/content information -->
<xsl:output indent="yes"/>
<xsl:output encoding="UTF-8"/>
<xsl:output media-type="text/html"/>
<xsl:output omit-xml-declaration="yes"/>
<xsl:output doctype-public="XSLT-compat"/>
<!-- Define some variables -->
<xsl:variable name="docroot"/>
<xsl:variable name="html.head.title"/>
<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.'"/>
<xsl:variable name="html.head.keywords" select="'exim,smtp,mta,email'"/>
<xsl:variable name="html.head.robots" select="'noodp,noydir,index,follow'"/>
<xsl:variable name="html.head.append"/>
<xsl:variable name="html.body.append"/>
<xsl:variable name="html.body.outer.append"/>
<!-- The main template code -->
<xsl:template match="/">
<html lang="en-GB">
<head>
<link rel="stylesheet" type="text/css" href="common.css"/>
<meta name="author" content="The Exim Project. <https://www.exim.org/>"/>
<meta name="copyright" content="Copyright ©1995-2012 The Exim Project. All rights reserved"/>
<meta name="description" content="{$html.head.description}"/>
<meta name="keywords" content="{$html.head.keywords}"/>
<meta name="robots" content="{$html.head.robots}"/>
<!-- Mobile Safari (iPhone) - Reduce viewport to physical size of device -->
<meta name="viewport" content="width=device-width"/>
<title>
<xsl:value-of select="$html.head.title"/>
</title>
<xsl:copy-of select="$html.head.append"/>
</head>
<body class="no-js">
<!-- Changed body classname from "no-js" to "with-js" for styling purposes -->
<script type="text/javascript"><![CDATA[document.body.className=(' '+document.body.className+' ').replace('no-js','with-js');]]></script>
<!-- Header -->
<h1 id="header">
<a href="http://www.exim.org">Exim Internet Mailer</a>
</h1>
<!-- Outer Container -->
<div id="outer">
<!-- Navigation -->
<ul id="nav_flow" class="nav">
<li> <a href="https://www.exim.org/index.html">Home</a> </li>
<li> <a href="https://www.exim.org/mirrors.html">Download</a> </li>
<li> <a href="https://www.exim.org/docs.html">Documentation</a> </li>
<li> <a href="https://www.exim.org/maillist.html">Mailing Lists</a> </li>
<li> <a href="http://wiki.exim.org/">Wiki</a> </li>
<li> <a href="https://bugs.exim.org/">Bugs</a> </li>
<li> <a href="https://www.exim.org/static/doc/security">Security</a> </li>
<li> <a href="https://www.exim.org/credits.html">Credits</a> </li>
<!-- Search Field -->
<li class="search">
<form action="https://encrypted.google.com/search" method="get">
<span class="search_field_container">
<input type="search" name="q" placeholder="Search Docs Online" class="search_field"/>
</span>
<input type="hidden" name="hl" value="en"/>
<input type="hidden" name="ie" value="UTF-8"/>
<input type="hidden" name="as_qdr" value="all"/>
<input type="hidden" name="q" value="site:www.exim.org"/>
<input type="hidden" name="q" value="inurl:exim-html-current"/>
</form>
</li>
</ul>
<!-- MAIN CONTENT. This is the div that wraps around the other stylesheets -->
<div id="inner">
<div id="content">
<xsl:call-template name="content"/>
</div>
</div>
<!-- Branding -->
<!--
<iframe id="branding" name="branding" src="http://www.exim.org/branding/branding.html" height="0" frameborder="no" scrolling="no"/>
-->
<!-- Footer -->
<div id="footer">
<xsl:text>Website design by </xsl:text>
<a href="https://www.grepular.com/">Mike Cardwell</a>
<xsl:text>.</xsl:text>
</div>
<!-- Side Bars -->
<div class="left_bar"/>
<div class="right_bar"/>
<!-- Append anything to the outer container? -->
<xsl:copy-of select="$html.body.outer.append"/>
</div>
<xsl:copy-of select="$html.body.append"/>
</body>
</html>
</xsl:template>
<!-- Quote Element -->
<xsl:template match="quote">
<xsl:text>“</xsl:text><xsl:apply-templates match="*"/><xsl:text>”</xsl:text>
</xsl:template>
<!-- Random Docbook Elements -->
<xsl:template match="filename | emphasis | option | command | function">
<span class="docbook_{name()}"> <xsl:apply-templates/> </span>
</xsl:template>
<!-- Literal Element -->
<xsl:template match="literal">
<code class="docbook_literal"> <xsl:apply-templates/> </code>
</xsl:template>
<xsl:template match="literallayout">
<div class="docbook_literallayout"> <pre> <xsl:apply-templates/> </pre> </div>
</xsl:template>
<!-- ULink Element -->
<xsl:template match="ulink">
<a href="{text()}"> <xsl:value-of select="text()"/> </a>
</xsl:template>
<!-- XREF (Fixed up in the Perl) -->
<xsl:template match="xref">
<a href="{@url}" title="{@chapter_id}. {@chapter_title}">
<xsl:choose>
<xsl:when test="@section_id">
<xsl:choose>
<xsl:when test="@longref">
<xsl:value-of select="@chapter_title"/>
<small>
<xsl:value-of select="concat(' [',@section_title,']')"/>
</small>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(@chapter_id,'.',@section_id)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@longref">
<xsl:value-of select="@chapter_title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@chapter_id"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:template>
<!-- Para -->
<xsl:template match="para">
<p>
<xsl:if test="@revisionflag!=''"><xsl:attribute name="class">changed</xsl:attribute></xsl:if>
<xsl:apply-templates/>
</p>
</xsl:template>
<!-- Lists -->
<xsl:template match="itemizedlist"> <ul> <xsl:apply-templates/> </ul> </xsl:template>
<xsl:template match="itemizedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
<xsl:template match="orderedlist"> <ol> <xsl:apply-templates/> </ol> </xsl:template>
<xsl:template match="orderedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
<xsl:template match="variablelist"> <dl> <xsl:apply-templates/> </dl> </xsl:template>
<xsl:template match="variablelist/varlistentry/term"> <dt> <xsl:apply-templates/> </dt> </xsl:template>
<xsl:template match="variablelist/varlistentry/listitem"> <dd> <xsl:apply-templates/> </dd> </xsl:template>
<!-- Table -->
<xsl:template match="informaltable"> <table> <xsl:apply-templates/> </table> </xsl:template>
<xsl:template match="tbody/row"> <tr> <xsl:apply-templates/> </tr> </xsl:template>
<xsl:template match="row/entry"> <td> <xsl:apply-templates/> </td> </xsl:template>
<xsl:template match="tgroup|tbody"> <xsl:apply-templates/> </xsl:template>
<!-- Ignore -->
<xsl:template match="indexterm|title|titleabbrev|current_version"/>
</xsl:stylesheet>
|