home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _7647DA3AE06E4618BACD5AB73538FB4D < prev    next >
Encoding:
Extensible Markup Language  |  2002-09-04  |  5.6 KB  |  172 lines

  1. <?xml version="1.0" encoding="US-ASCII"?>
  2. <!--This file was created automatically by html2xhtml-->
  3. <!--from the HTML stylesheets. Do not edit this file.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  5.  
  6. <!-- ********************************************************************
  7.      $Id: division.xsl,v 1.1.2.3 2002/09/04 13:55:34 jdj Exp $
  8.      ********************************************************************
  9.  
  10.      This file is part of the XSL DocBook Stylesheet distribution.
  11.      See ../README or http://nwalsh.com/docbook/xsl/ for copyright
  12.      and other information.
  13.  
  14.      ******************************************************************** -->
  15.  
  16. <!-- ==================================================================== -->
  17.  
  18. <xsl:template match="set">
  19.   <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
  20.     <xsl:if test="$generate.id.attributes != 0">
  21.       <xsl:attribute name="id">
  22.         <xsl:call-template name="object.id"/>
  23.       </xsl:attribute>
  24.     </xsl:if>
  25.  
  26.     <xsl:call-template name="set.titlepage"/>
  27.  
  28.     <xsl:call-template name="make.lots">
  29.       <xsl:with-param name="toc.params">
  30.         <xsl:call-template name="find.path.params">
  31.           <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
  32.         </xsl:call-template>
  33.       </xsl:with-param>
  34.       <xsl:with-param name="toc">
  35.         <xsl:call-template name="set.toc"/>
  36.       </xsl:with-param>
  37.     </xsl:call-template>
  38.  
  39.     <xsl:apply-templates/>
  40.   </div>
  41. </xsl:template>
  42.  
  43. <xsl:template match="set/setinfo"/>
  44. <xsl:template match="set/title"/>
  45. <xsl:template match="set/titleabbrev"/>
  46. <xsl:template match="set/subtitle"/>
  47.  
  48. <!-- ==================================================================== -->
  49.  
  50. <xsl:template match="book">
  51.   <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
  52.     <xsl:if test="$generate.id.attributes != 0">
  53.       <xsl:attribute name="id">
  54.         <xsl:call-template name="object.id"/>
  55.       </xsl:attribute>
  56.     </xsl:if>
  57.  
  58.     <xsl:call-template name="book.titlepage"/>
  59.  
  60.     <xsl:apply-templates select="dedication" mode="dedication"/>
  61.  
  62.     <xsl:call-template name="make.lots">
  63.       <xsl:with-param name="toc.params">
  64.         <xsl:call-template name="find.path.params">
  65.           <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
  66.         </xsl:call-template>
  67.       </xsl:with-param>
  68.       <xsl:with-param name="toc">
  69.         <xsl:call-template name="division.toc"/>
  70.       </xsl:with-param>
  71.     </xsl:call-template>
  72.  
  73.     <xsl:apply-templates/>
  74.   </div>
  75. </xsl:template>
  76.  
  77. <xsl:template match="book/bookinfo"/>
  78. <xsl:template match="book/title"/>
  79. <xsl:template match="book/titleabbrev"/>
  80. <xsl:template match="book/subtitle"/>
  81.  
  82. <!-- ==================================================================== -->
  83.  
  84. <xsl:template match="part">
  85.   <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
  86.     <xsl:if test="$generate.id.attributes != 0">
  87.       <xsl:attribute name="id">
  88.         <xsl:call-template name="object.id"/>
  89.       </xsl:attribute>
  90.     </xsl:if>
  91.  
  92.     <xsl:call-template name="part.titlepage"/>
  93.  
  94.     <xsl:variable name="toc.params">
  95.       <xsl:call-template name="find.path.params">
  96.         <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
  97.       </xsl:call-template>
  98.     </xsl:variable>
  99.     <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
  100.       <xsl:call-template name="division.toc"/>
  101.     </xsl:if>
  102.     <xsl:apply-templates/>
  103.   </div>
  104. </xsl:template>
  105.  
  106. <xsl:template match="part" mode="make.part.toc">
  107.   <xsl:call-template name="division.toc"/>
  108. </xsl:template>
  109.  
  110. <xsl:template match="reference" mode="make.part.toc">
  111.   <xsl:call-template name="division.toc"/>
  112. </xsl:template>
  113.  
  114. <xsl:template match="part/docinfo"/>
  115. <xsl:template match="part/partinfo"/>
  116. <xsl:template match="part/title"/>
  117. <xsl:template match="part/titleabbrev"/>
  118. <xsl:template match="part/subtitle"/>
  119.  
  120. <xsl:template match="partintro">
  121.   <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
  122.     <xsl:if test="$generate.id.attributes != 0">
  123.       <xsl:attribute name="id">
  124.         <xsl:call-template name="object.id"/>
  125.       </xsl:attribute>
  126.     </xsl:if>
  127.  
  128.     <xsl:call-template name="partintro.titlepage"/>
  129.     <xsl:apply-templates/>
  130.  
  131.     <xsl:variable name="toc.params">
  132.       <xsl:call-template name="find.path.params">
  133.         <xsl:with-param name="node" select="parent::*"/>
  134.         <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
  135.       </xsl:call-template>
  136.     </xsl:variable>
  137.     <xsl:if test="contains($toc.params, 'toc')">
  138.       <!-- not ancestor::part because partintro appears in reference -->
  139.       <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
  140.     </xsl:if>
  141.     <xsl:call-template name="process.footnotes"/>
  142.   </div>
  143. </xsl:template>
  144.  
  145. <xsl:template match="partintro/title"/>
  146. <xsl:template match="partintro/titleabbrev"/>
  147. <xsl:template match="partintro/subtitle"/>
  148.  
  149. <xsl:template match="partintro/title" mode="partintro.title.mode">
  150.   <h2 xmlns="http://www.w3.org/1999/xhtml">
  151.     <xsl:apply-templates/>
  152.   </h2>
  153. </xsl:template>
  154.  
  155. <xsl:template match="partintro/subtitle" mode="partintro.title.mode">
  156.   <h3 xmlns="http://www.w3.org/1999/xhtml">
  157.     <i><xsl:apply-templates/></i>
  158.   </h3>
  159. </xsl:template>
  160.  
  161. <!-- ==================================================================== -->
  162.  
  163. <xsl:template match="book" mode="division.number">
  164.   <xsl:number from="set" count="book" format="1."/>
  165. </xsl:template>
  166.  
  167. <xsl:template match="part" mode="division.number">
  168.   <xsl:number from="book" count="part" format="I."/>
  169. </xsl:template>
  170.  
  171. </xsl:stylesheet>
  172.