123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?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">
-
-
- {docbook-xsl}
- <xsl:template name="preface.titlepage">
- <h1 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h1>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="part.titlepage">
- <h1 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="$section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h1>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="partintro.titlepage">
- <xsl:if test="title">
- <h2 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h2>
- </xsl:if>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="appendix.titlepage">
- <h1 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="$section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h1>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="chapter.titlepage">
- <h1 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="$section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h1>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="sect1.titlepage">
- <h1 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="$section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h1>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="sect2.titlepage">
- <xsl:choose>
- <xsl:when test="string-length(title) = 0"/>
- <xsl:otherwise>
- <h2 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h2>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="sect3.titlepage">
- <h3 class="{name(.)}">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:if test="$section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h3>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="dedication.titlepage">
- <h2>
- <xsl:value-of select="title"/>
- </h2>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template match="bridgehead">
- <xsl:variable name="hlevel">
- <xsl:choose>
- <xsl:when test="@renderas = 'sect1'">1</xsl:when>
- <xsl:when test="@renderas = 'sect2'">2</xsl:when>
- <xsl:when test="@renderas = 'sect3'">3</xsl:when>
- <xsl:when test="@renderas = 'sect4'">4</xsl:when>
- <xsl:when test="@renderas = 'sect5'">5</xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
- {docbook-xsl}
- <xsl:template name="book.titlepage.verso">
- <xsl:apply-templates select="bookinfo/bibliosource"/>
- </xsl:template>
-
- <xsl:template match="bookinfo/bibliosource">
- <p class="copyright">
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- </xsl:stylesheet>
|