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"/>
21 <!-- The main template code -->
22 <xsl:template match="/">
25 <link rel="stylesheet" type="text/css" href="{$docroot}/common.css"/>
27 <meta name="author" content="The Exim Project. <http://www.exim.org/>"/>
28 <meta name="copyright" content="Copyright ©2010The Exim Project. All rights reserved"/>
29 <meta name="description" content="{$html.head.description}"/>
30 <meta name="keywords" content="{$html.head.keywords}"/>
31 <meta name="robots" content="{$html.head.robots}"/>
34 <xsl:value-of select="$html.head.title"/>
37 <xsl:copy-of select="$html.head.append"/>
44 <a href="{$docroot}">Exim Internet Mailer</a>
47 <!-- Outer Container -->
53 <ul class="navigation">
54 <li> <a href="{$docroot}/mirrors.html">Download</a> </li>
55 <li> <a href="{$docroot}/docs.html">Documentation</a> </li>
56 <li> <a href="{$docroot}/maillist.html">Mailing Lists</a> </li>
57 <li> <a href="http://wiki.exim.org/">Wiki</a> </li>
58 <li> <a href="http://www.exim.org/bugzilla/">Bugs</a> </li>
59 <li> <a href="{$docroot}/credits.html">Credits</a> </li>
64 <form action="http://www.google.com/search" method="get">
65 <span class="search_field_container">
66 <input type="search" name="q" placeholder="Search Docs" class="search_field"/>
68 <input type="hidden" name="hl" value="en"/>
69 <input type="hidden" name="ie" value="UTF-8"/>
70 <input type="hidden" name="as_qdr" value="all"/>
71 <input type="hidden" name="q" value="site:www.exim.org"/>
72 <input type="hidden" name="q" value="inurl:exim-html-current"/>
77 <!-- MAIN CONTENT. This is the div that wraps around the other stylesheets -->
79 <xsl:call-template name="content"/>
83 <iframe id="branding" name="branding" src="{$docroot}/branding/branding.html" height="0" frameborder="no" scrolling="no"/>
88 <xsl:text>Website design by </xsl:text>
89 <a href="https://secure.grepular.com/">Mike Cardwell</a>
90 <xsl:text>, of </xsl:text>
91 <a href="http://cardwellit.com/">Cardwell IT Ltd.</a>
95 <div class="left_bar"/>
96 <div class="right_bar"/>
100 <!-- Load latest version of jQuery 1.4 from the Google CDN -->
101 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
103 <!-- Local JavaScript -->
104 <script type="text/javascript" src="{$docroot}/common.js"></script>
106 <xsl:copy-of select="$html.body.append"/>
113 <!-- Quote Element -->
114 <xsl:template match="quote">
115 <xsl:text>“</xsl:text><xsl:apply-templates match="*"/><xsl:text>”</xsl:text>
118 <!-- Random Docbook Elements -->
119 <xsl:template match="filename | emphasis | option | command | function">
120 <span class="docbook_{name()}"> <xsl:apply-templates/> </span>
123 <!-- Literal Element -->
124 <xsl:template match="literal">
125 <code class="docbook_literal"> <xsl:apply-templates/> </code>
127 <xsl:template match="literallayout">
128 <div class="docbook_literallayout"> <pre> <xsl:apply-templates/> </pre> </div>
131 <!-- ULink Element -->
132 <xsl:template match="ulink">
133 <a href="{text()}"> <xsl:value-of select="text()"/> </a>
136 <!-- XREF (Fixed up in the Perl) -->
137 <xsl:template match="xref">
138 <a href="{@url}" title="{@chapter_id}. {@chapter_title}">
140 <xsl:when test="@section_id">
141 <xsl:value-of select="concat(@chapter_id,'.',@section_id)"/>
144 <xsl:value-of select="@chapter_id"/>
151 <xsl:template match="para"> <p> <xsl:apply-templates/> </p> </xsl:template>
154 <xsl:template match="itemizedlist"> <ul> <xsl:apply-templates/> </ul> </xsl:template>
155 <xsl:template match="itemizedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
156 <xsl:template match="orderedlist"> <ol> <xsl:apply-templates/> </ol> </xsl:template>
157 <xsl:template match="orderedlist/listitem"> <li> <xsl:apply-templates/> </li> </xsl:template>
160 <xsl:template match="informaltable"> <table> <xsl:apply-templates/> </table> </xsl:template>
161 <xsl:template match="tbody/row"> <tr> <xsl:apply-templates/> </tr> </xsl:template>
162 <xsl:template match="row/entry"> <td> <xsl:apply-templates/> </td> </xsl:template>
163 <xsl:template match="tgroup|tbody"> <xsl:apply-templates/> </xsl:template>
166 <xsl:template match="indexterm|title|titleabbrev|current_version"/>