2004-05-08 15:19:53 +01:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
version="1.0">
|
|
|
|
|
|
|
|
<xsl:template name="part.titlepage">
|
|
|
|
<div class="titlepage">
|
|
|
|
<h1 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="chapter.titlepage">
|
|
|
|
<div class="titlepage">
|
|
|
|
<h1 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="preface.titlepage">
|
|
|
|
<div class="titlepage">
|
|
|
|
<h1 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="sect1.titlepage">
|
|
|
|
<xsl:choose>
|
2004-05-19 21:16:58 +01:00
|
|
|
<!-- I should find a better test -->
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:when test="position() = 4">
|
|
|
|
<div class="titlepage">
|
|
|
|
<xsl:if test="@id">
|
|
|
|
<a id="{@id}" name="{@id}"/>
|
|
|
|
</xsl:if>
|
|
|
|
<h2 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<div class="titlepage">
|
|
|
|
<h1 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="sect2.titlepage">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="string-length(title) = 0"/>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<div class="titlepage">
|
|
|
|
<xsl:if test="@id">
|
|
|
|
<a id="{@id}" name="{@id}"/>
|
|
|
|
</xsl:if>
|
2004-05-20 00:44:41 +01:00
|
|
|
<h2 class="{name(.)}">
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:value-of select="title"/>
|
2004-05-20 00:44:41 +01:00
|
|
|
</h2>
|
2004-05-08 15:19:53 +01:00
|
|
|
</div>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="dedication.titlepage">
|
|
|
|
<div class="titlepage">
|
|
|
|
<h2 class="{name(.)}">
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|