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="/book/bookinfo/title"/>
16 <xsl:variable name="html.head.append">
19 <link rel="stylesheet" type="text/css" href="{$staticroot}/doc/index.css"/>
22 <link rel="canonical" href="{/book/canonical_url}"/>
27 <xsl:variable name="html.body.append">
28 <script type="text/javascript" src="{$staticroot}/doc/index.js"/>
32 <xsl:template match="/book">
33 <xsl:if test="current_url">
34 <p id="old_version_warning">
35 <strong>WARNING:</strong>
36 <xsl:text> This documentation is for an old version of Exim (</xsl:text>
37 <a href="{current_url}">latest</a>
38 <xsl:text>)</xsl:text>
42 <xsl:apply-templates select="bookinfo"/>
44 <div id="options" class="hidden">
45 <img src="{$staticroot}/doc/plus-12x12.png" width="12" height="12" class="expand"/>
46 <img src="{$staticroot}/doc/minus-12x12.png" width="12" height="12" class="collapse"/>
47 <xsl:text>Expand/Collapse all Chapters</xsl:text>
51 <xsl:apply-templates select="chapter"/>
57 <xsl:template match="/book/bookinfo">
59 <xsl:apply-templates select="title"/>
62 <xsl:text>Copyright</xsl:text>
63 <xsl:value-of select="concat(' © ',copyright/year)"/>
64 <xsl:text> </xsl:text>
65 <xsl:apply-templates select="copyright/holder"/><br/>
66 <xsl:text>Revision </xsl:text>
67 <xsl:apply-templates select="revhistory/revision/revnumber"/>
68 <xsl:text> - </xsl:text>
69 <xsl:apply-templates select="revhistory/revision/date"/>
74 <xsl:template match="/book/chapter">
76 <!-- Calculate the URL to the chapter. Store in $chapter_url -->
77 <xsl:variable name="chapter_url">
79 <xsl:when test="position()<10">
80 <xsl:value-of select="concat(/book/prepend_chapter,'ch',0,position(),'.html')"/>
83 <xsl:value-of select="concat(/book/prepend_chapter,'ch',position(),'.html')"/>
90 <xsl:if test="section">
94 <span class="chapter_title">
95 <xsl:if test="not(section)">
96 <xsl:attribute name="class">chapter_title nosub</xsl:attribute>
98 <xsl:value-of select="concat(position(),'. ')"/>
99 <a href="{$chapter_url}">
100 <xsl:apply-templates select="title"/>
104 <xsl:if test="section">
105 <ul class="sections">
106 <xsl:apply-templates select="section">
107 <xsl:with-param name="chapter_url" select="$chapter_url"/>
108 </xsl:apply-templates>
115 <xsl:template match="/book/chapter/section">
116 <xsl:param name="chapter_url"/>
118 <xsl:value-of select="concat(position(),'. ')"/>
119 <a class="section_title" href="{$chapter_url}#{@id}">
120 <xsl:apply-templates select="title"/>
125 <!-- Chapter/Section Title -->
126 <xsl:template match="title|chapter/title|section/title">
127 <xsl:apply-templates/>