1258501Spfg<?xml version='1.0'?> 2258501Spfg<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3258501Spfg version='1.0'> 4258501Spfg 5258501Spfg<!-- ******************************************************************** 6258501Spfg $Id: division.xsl,v 1.12 2006/05/04 12:21:28 kosek Exp $ 7258501Spfg ******************************************************************** 8258501Spfg 9258501Spfg This file is part of the XSL DocBook Stylesheet distribution. 10258501Spfg See ../README or http://nwalsh.com/docbook/xsl/ for copyright 11258501Spfg and other information. 12258501Spfg 13258501Spfg ******************************************************************** --> 14258501Spfg 15258501Spfg<!-- ==================================================================== --> 16258501Spfg 17258501Spfg<xsl:template match="set"> 18258501Spfg <xsl:call-template name="id.warning"/> 19258501Spfg 20258501Spfg <div class="{name(.)}"> 21258501Spfg <xsl:call-template name="dir"> 22258501Spfg <xsl:with-param name="inherit" select="1"/> 23258501Spfg </xsl:call-template> 24258501Spfg <xsl:call-template name="language.attribute"/> 25258501Spfg <xsl:if test="$generate.id.attributes != 0"> 26258501Spfg <xsl:attribute name="id"> 27258501Spfg <xsl:call-template name="object.id"/> 28258501Spfg </xsl:attribute> 29258501Spfg </xsl:if> 30258501Spfg 31258501Spfg <xsl:call-template name="set.titlepage"/> 32258501Spfg 33258501Spfg <xsl:variable name="toc.params"> 34258501Spfg <xsl:call-template name="find.path.params"> 35258501Spfg <xsl:with-param name="table" select="normalize-space($generate.toc)"/> 36258501Spfg </xsl:call-template> 37258501Spfg </xsl:variable> 38258501Spfg 39258501Spfg <xsl:call-template name="make.lots"> 40258501Spfg <xsl:with-param name="toc.params" select="$toc.params"/> 41258501Spfg <xsl:with-param name="toc"> 42258501Spfg <xsl:call-template name="set.toc"> 43258501Spfg <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/> 44258501Spfg </xsl:call-template> 45258501Spfg </xsl:with-param> 46258501Spfg </xsl:call-template> 47258501Spfg 48258501Spfg <xsl:apply-templates/> 49258501Spfg </div> 50258501Spfg</xsl:template> 51258501Spfg 52258501Spfg<xsl:template match="set/setinfo"></xsl:template> 53258501Spfg<xsl:template match="set/title"></xsl:template> 54258501Spfg<xsl:template match="set/titleabbrev"></xsl:template> 55258501Spfg<xsl:template match="set/subtitle"></xsl:template> 56258501Spfg 57258501Spfg<!-- ==================================================================== --> 58258501Spfg 59258501Spfg<xsl:template match="book"> 60258501Spfg <xsl:call-template name="id.warning"/> 61258501Spfg 62258501Spfg <div class="{name(.)}"> 63258501Spfg <xsl:call-template name="dir"> 64258501Spfg <xsl:with-param name="inherit" select="1"/> 65258501Spfg </xsl:call-template> 66258501Spfg <xsl:call-template name="language.attribute"/> 67258501Spfg <xsl:if test="$generate.id.attributes != 0"> 68258501Spfg <xsl:attribute name="id"> 69258501Spfg <xsl:call-template name="object.id"/> 70258501Spfg </xsl:attribute> 71258501Spfg </xsl:if> 72258501Spfg 73258501Spfg <xsl:call-template name="book.titlepage"/> 74258501Spfg 75258501Spfg <xsl:apply-templates select="dedication" mode="dedication"/> 76258501Spfg 77258501Spfg <xsl:variable name="toc.params"> 78258501Spfg <xsl:call-template name="find.path.params"> 79258501Spfg <xsl:with-param name="table" select="normalize-space($generate.toc)"/> 80258501Spfg </xsl:call-template> 81258501Spfg </xsl:variable> 82258501Spfg 83258501Spfg <xsl:call-template name="make.lots"> 84258501Spfg <xsl:with-param name="toc.params" select="$toc.params"/> 85258501Spfg <xsl:with-param name="toc"> 86258501Spfg <xsl:call-template name="division.toc"> 87258501Spfg <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/> 88258501Spfg </xsl:call-template> 89258501Spfg </xsl:with-param> 90258501Spfg </xsl:call-template> 91258501Spfg 92258501Spfg <xsl:apply-templates/> 93258501Spfg </div> 94258501Spfg</xsl:template> 95258501Spfg 96258501Spfg<xsl:template match="book/bookinfo"></xsl:template> 97258501Spfg<xsl:template match="book/title"></xsl:template> 98258501Spfg<xsl:template match="book/titleabbrev"></xsl:template> 99258501Spfg<xsl:template match="book/subtitle"></xsl:template> 100258501Spfg 101258501Spfg<!-- ==================================================================== --> 102258501Spfg 103258501Spfg<xsl:template match="part"> 104258501Spfg <xsl:call-template name="id.warning"/> 105258501Spfg 106258501Spfg <div class="{name(.)}"> 107258501Spfg <xsl:call-template name="dir"> 108258501Spfg <xsl:with-param name="inherit" select="1"/> 109258501Spfg </xsl:call-template> 110258501Spfg <xsl:call-template name="language.attribute"/> 111258501Spfg <xsl:if test="$generate.id.attributes != 0"> 112258501Spfg <xsl:attribute name="id"> 113258501Spfg <xsl:call-template name="object.id"/> 114258501Spfg </xsl:attribute> 115258501Spfg </xsl:if> 116258501Spfg 117258501Spfg <xsl:call-template name="part.titlepage"/> 118258501Spfg 119258501Spfg <xsl:variable name="toc.params"> 120258501Spfg <xsl:call-template name="find.path.params"> 121258501Spfg <xsl:with-param name="table" select="normalize-space($generate.toc)"/> 122258501Spfg </xsl:call-template> 123258501Spfg </xsl:variable> 124258501Spfg <xsl:if test="not(partintro) and contains($toc.params, 'toc')"> 125258501Spfg <xsl:call-template name="division.toc"/> 126258501Spfg </xsl:if> 127258501Spfg <xsl:apply-templates/> 128258501Spfg </div> 129258501Spfg</xsl:template> 130258501Spfg 131258501Spfg<xsl:template match="part" mode="make.part.toc"> 132258501Spfg <xsl:call-template name="division.toc"/> 133258501Spfg</xsl:template> 134258501Spfg 135258501Spfg<xsl:template match="reference" mode="make.part.toc"> 136258501Spfg <xsl:call-template name="division.toc"/> 137258501Spfg</xsl:template> 138258501Spfg 139258501Spfg<xsl:template match="part/docinfo"></xsl:template> 140258501Spfg<xsl:template match="part/partinfo"></xsl:template> 141258501Spfg<xsl:template match="part/title"></xsl:template> 142258501Spfg<xsl:template match="part/titleabbrev"></xsl:template> 143258501Spfg<xsl:template match="part/subtitle"></xsl:template> 144258501Spfg 145258501Spfg<xsl:template match="partintro"> 146258501Spfg <xsl:call-template name="id.warning"/> 147258501Spfg 148258501Spfg <div class="{name(.)}"> 149258501Spfg <xsl:call-template name="dir"> 150258501Spfg <xsl:with-param name="inherit" select="1"/> 151258501Spfg </xsl:call-template> 152258501Spfg <xsl:call-template name="language.attribute"/> 153258501Spfg <xsl:if test="$generate.id.attributes != 0"> 154258501Spfg <xsl:attribute name="id"> 155258501Spfg <xsl:call-template name="object.id"/> 156258501Spfg </xsl:attribute> 157258501Spfg </xsl:if> 158258501Spfg 159258501Spfg <xsl:call-template name="partintro.titlepage"/> 160258501Spfg <xsl:apply-templates/> 161258501Spfg 162258501Spfg <xsl:variable name="toc.params"> 163258501Spfg <xsl:call-template name="find.path.params"> 164258501Spfg <xsl:with-param name="node" select="parent::*"/> 165258501Spfg <xsl:with-param name="table" select="normalize-space($generate.toc)"/> 166258501Spfg </xsl:call-template> 167258501Spfg </xsl:variable> 168258501Spfg <xsl:if test="contains($toc.params, 'toc')"> 169258501Spfg <!-- not ancestor::part because partintro appears in reference --> 170258501Spfg <xsl:apply-templates select="parent::*" mode="make.part.toc"/> 171258501Spfg </xsl:if> 172258501Spfg <xsl:call-template name="process.footnotes"/> 173258501Spfg </div> 174258501Spfg</xsl:template> 175258501Spfg 176258501Spfg<xsl:template match="partintro/title"></xsl:template> 177258501Spfg<xsl:template match="partintro/titleabbrev"></xsl:template> 178258501Spfg<xsl:template match="partintro/subtitle"></xsl:template> 179258501Spfg 180258501Spfg<xsl:template match="partintro/title" mode="partintro.title.mode"> 181258501Spfg <h2> 182258501Spfg <xsl:apply-templates/> 183258501Spfg </h2> 184258501Spfg</xsl:template> 185258501Spfg 186258501Spfg<xsl:template match="partintro/subtitle" mode="partintro.title.mode"> 187258501Spfg <h3> 188258501Spfg <i><xsl:apply-templates/></i> 189258501Spfg </h3> 190258501Spfg</xsl:template> 191258501Spfg 192258501Spfg<!-- ==================================================================== --> 193258501Spfg 194258501Spfg<xsl:template match="book" mode="division.number"> 195258501Spfg <xsl:number from="set" count="book" format="1."/> 196258501Spfg</xsl:template> 197258501Spfg 198258501Spfg<xsl:template match="part" mode="division.number"> 199258501Spfg <xsl:number from="book" count="part" format="I."/> 200258501Spfg</xsl:template> 201258501Spfg 202258501Spfg<!-- ==================================================================== --> 203258501Spfg 204258501Spfg<xsl:template name="division.title"> 205258501Spfg <xsl:param name="node" select="."/> 206258501Spfg 207258501Spfg <h1> 208258501Spfg <xsl:attribute name="class">title</xsl:attribute> 209258501Spfg <xsl:call-template name="anchor"> 210258501Spfg <xsl:with-param name="node" select="$node"/> 211258501Spfg <xsl:with-param name="conditional" select="0"/> 212258501Spfg </xsl:call-template> 213258501Spfg <xsl:apply-templates select="$node" mode="object.title.markup"> 214258501Spfg <xsl:with-param name="allow-anchors" select="1"/> 215258501Spfg </xsl:apply-templates> 216258501Spfg </h1> 217258501Spfg</xsl:template> 218258501Spfg 219258501Spfg</xsl:stylesheet> 220258501Spfg 221258501Spfg