1 <?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="../wrapper.xsl"/>
7 <xsl:template match="/"> <xsl:apply-imports/> </xsl:template>
8 <xsl:template name="content"><xsl:apply-templates/></xsl:template>
10 <!-- Where am I relative to the root. Lets mirrors host this in subfolders -->
11 <xsl:variable name="docroot" select="'../../../..'"/>
14 <xsl:variable name="html.head.title" select="concat(/chapter/chapter_id,'. ',/chapter/title)"/>
16 <xsl:variable name="html.head.append">
19 <link rel="stylesheet" type="text/css" href="{$docroot}/doc/chapter.css"/>
22 <link rel="canonical" href="{/chapter/canonical_url}"/>
27 <xsl:variable name="html.body.append">
28 <script type="text/javascript" src="{$docroot}/doc/chapter.js"/>
31 <!-- Table of Contents -->
32 <xsl:variable name="html.body.outer.append">
35 <img src="../../../../doc/contents.png" width="16" height="155"/>
40 <xsl:template match="/chapter">
43 <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
44 <xsl:if test="next_url">
45 <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
48 <!-- Chapter Wrapper -->
49 <div id="chapter" class="chapter{@class}">
51 <xsl:if test="current_url">
52 <p id="old_version_warning">
53 <span class="closebar"><a href="#" title="Close">X</a></span>
54 <strong>WARNING:</strong>
55 <xsl:text> This documentation is for an old version of Exim (</xsl:text>
56 <a href="{current_url}">latest</a>
57 <xsl:text>)</xsl:text>
61 <!-- Chapter Title -->
62 <h2 id="{@id}" class="{@class}">
63 <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
67 <xsl:apply-templates select="*[name()!='section']"/>
68 <xsl:apply-templates select="section"/>
72 <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
73 <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
78 <xsl:template match="/chapter/section">
79 <!-- Section Wrapper -->
80 <div class="section{@class}">
82 <!-- Section Title -->
84 <xsl:when test="@class='index'">
85 <h3 id="{@id}" class="{@class}">
86 <xsl:value-of select="title"/>
90 <h3 id="{@id}" class="{@class}">
91 <xsl:value-of select="concat(position(),'. ',title)"/>
96 <!-- Section Paragraphs -->
97 <xsl:apply-templates select="*"/>
101 <!-- Section paragraph -->
102 <xsl:template match="/chapter/section/para">
104 <xsl:if test="@revisionflag!=''"><xsl:attribute name="class">changed</xsl:attribute></xsl:if>
105 <xsl:apply-templates/>
110 <xsl:template match="chapter_id|prev_url|next_url|canonical_url|current_url|old_versions"/>