diff options
Diffstat (limited to 'xhtml/division.xsl')
-rw-r--r-- | xhtml/division.xsl | 79 |
1 files changed, 37 insertions, 42 deletions
diff --git a/xhtml/division.xsl b/xhtml/division.xsl index 3af229c..d89bae7 100644 --- a/xhtml/division.xsl +++ b/xhtml/division.xsl @@ -1,21 +1,16 @@ -<?xml version="1.0" encoding="ASCII"?> -<!--This file was created automatically by html2xhtml--> -<!--from the HTML stylesheets.--> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> +<?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0"> <!-- ******************************************************************** - $Id: division.xsl 9366 2012-05-12 23:44:25Z bobstayton $ - ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://docbook.sf.net/release/xsl/current/ for + See ../README or http://cdn.docbook.org/release/xsl/current/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> -<xsl:template match="set"> +<xsl:template match="d:set"> <xsl:call-template name="id.warning"/> <xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml"> @@ -54,14 +49,14 @@ </xsl:element> </xsl:template> -<xsl:template match="set/setinfo"/> -<xsl:template match="set/title"/> -<xsl:template match="set/titleabbrev"/> -<xsl:template match="set/subtitle"/> +<xsl:template match="d:set/d:setinfo"/> +<xsl:template match="d:set/d:title"/> +<xsl:template match="d:set/d:titleabbrev"/> +<xsl:template match="d:set/d:subtitle"/> <!-- ==================================================================== --> -<xsl:template match="book"> +<xsl:template match="d:book"> <xsl:call-template name="id.warning"/> <div> @@ -72,8 +67,8 @@ <xsl:call-template name="book.titlepage"/> - <xsl:apply-templates select="dedication" mode="dedication"/> - <xsl:apply-templates select="acknowledgements" mode="acknowledgements"/> + <xsl:apply-templates select="d:dedication" mode="dedication"/> + <xsl:apply-templates select="d:acknowledgements" mode="acknowledgements"/> <xsl:variable name="toc.params"> <xsl:call-template name="find.path.params"> @@ -94,15 +89,15 @@ </div> </xsl:template> -<xsl:template match="book/bookinfo"/> -<xsl:template match="book/info"/> -<xsl:template match="book/title"/> -<xsl:template match="book/titleabbrev"/> -<xsl:template match="book/subtitle"/> +<xsl:template match="d:book/d:bookinfo"/> +<xsl:template match="d:book/d:info"/> +<xsl:template match="d:book/d:title"/> +<xsl:template match="d:book/d:titleabbrev"/> +<xsl:template match="d:book/d:subtitle"/> <!-- ==================================================================== --> -<xsl:template match="part"> +<xsl:template match="d:part"> <xsl:call-template name="id.warning"/> <div> @@ -118,29 +113,29 @@ <xsl:with-param name="table" select="normalize-space($generate.toc)"/> </xsl:call-template> </xsl:variable> - <xsl:if test="not(partintro) and contains($toc.params, 'toc')"> + <xsl:if test="not(d:partintro) and contains($toc.params, 'toc')"> <xsl:call-template name="division.toc"/> </xsl:if> <xsl:apply-templates/> </div> </xsl:template> -<xsl:template match="part" mode="make.part.toc"> +<xsl:template match="d:part" mode="make.part.toc"> <xsl:call-template name="division.toc"/> </xsl:template> -<xsl:template match="reference" mode="make.part.toc"> +<xsl:template match="d:reference" mode="make.part.toc"> <xsl:call-template name="division.toc"/> </xsl:template> -<xsl:template match="part/docinfo"/> -<xsl:template match="part/partinfo"/> -<xsl:template match="part/info"/> -<xsl:template match="part/title"/> -<xsl:template match="part/titleabbrev"/> -<xsl:template match="part/subtitle"/> +<xsl:template match="d:part/d:docinfo"/> +<xsl:template match="d:part/d:partinfo"/> +<xsl:template match="d:part/d:info"/> +<xsl:template match="d:part/d:title"/> +<xsl:template match="d:part/d:titleabbrev"/> +<xsl:template match="d:part/d:subtitle"/> -<xsl:template match="partintro"> +<xsl:template match="d:partintro"> <xsl:call-template name="id.warning"/> <div> @@ -166,30 +161,30 @@ </div> </xsl:template> -<xsl:template match="partintro/title"/> -<xsl:template match="partintro/titleabbrev"/> -<xsl:template match="partintro/subtitle"/> +<xsl:template match="d:partintro/d:title"/> +<xsl:template match="d:partintro/d:titleabbrev"/> +<xsl:template match="d:partintro/d:subtitle"/> -<xsl:template match="partintro/title" mode="partintro.title.mode"> +<xsl:template match="d:partintro/d:title" mode="partintro.title.mode"> <h2> <xsl:apply-templates/> </h2> </xsl:template> -<xsl:template match="partintro/subtitle" mode="partintro.title.mode"> +<xsl:template match="d:partintro/d:subtitle" mode="partintro.title.mode"> <h3> - <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em> + <em><xsl:apply-templates/></em> </h3> </xsl:template> <!-- ==================================================================== --> -<xsl:template match="book" mode="division.number"> - <xsl:number from="set" count="book" format="1."/> +<xsl:template match="d:book" mode="division.number"> + <xsl:number from="d:set" count="d:book" format="1."/> </xsl:template> -<xsl:template match="part" mode="division.number"> - <xsl:number from="book" count="part" format="I."/> +<xsl:template match="d:part" mode="division.number"> + <xsl:number from="d:book" count="d:part" format="I."/> </xsl:template> <!-- ==================================================================== --> @@ -209,4 +204,4 @@ </h1> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet>
\ No newline at end of file |