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"/>
32 <xsl:template match="/chapter">
35 <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
36 <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
38 <!-- Chapter Title -->
40 <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
45 <xsl:apply-templates select="*[name()!='section']"/>
46 <xsl:apply-templates select="section"/>
50 <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
51 <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
56 <xsl:template match="/chapter/section">
58 <!-- Section Title -->
60 <xsl:value-of select="concat(position(),'. ',title)"/>
63 <!-- Section Paragraphs -->
64 <xsl:apply-templates select="*"/>
67 <!-- Section paragraph -->
68 <xsl:template match="/chapter/section/para">
70 <xsl:if test="@revisionflag!=''"><xsl:attribute name="class">changed</xsl:attribute></xsl:if>
71 <xsl:apply-templates/>
76 <xsl:template match="chapter_id|prev_url|next_url|canonical_url"/>