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">
78 <xsl:value-of select="concat(/book/prepend_chapter,'ch-',title_uri,'.html')"/>
83 <xsl:if test="section">
87 <span class="chapter_title">
88 <xsl:if test="not(section)">
89 <xsl:attribute name="class">chapter_title nosub</xsl:attribute>
91 <xsl:value-of select="concat(position(),'. ')"/>
92 <a href="{$chapter_url}">
93 <xsl:apply-templates select="title"/>
97 <xsl:if test="section">
99 <xsl:apply-templates select="section">
100 <xsl:with-param name="chapter_url" select="$chapter_url"/>
101 </xsl:apply-templates>
108 <xsl:template match="/book/chapter/section">
109 <xsl:param name="chapter_url"/>
111 <xsl:value-of select="concat(position(),'. ')"/>
112 <a class="section_title" href="{$chapter_url}#{@id}">
113 <xsl:apply-templates select="title"/>
118 <!-- Chapter/Section Title -->
119 <xsl:template match="title|chapter/title|section/title">
120 <xsl:apply-templates/>