home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _BCC7A3E612104E87A2D997C1B0EE15E3 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-30  |  2.1 KB  |  66 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" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc">
  5.  
  6. <xsl:import href="docbook.xsl"/>
  7. <xsl:import href="chunk.xsl"/>
  8.  
  9. <xsl:output method="xml" indent="no" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  10.  
  11. <xsl:param name="toc.list.type" select="'tocentry'"/>
  12.  
  13. <xsl:template name="subtoc">
  14.   <xsl:param name="nodes" select="NOT-AN-ELEMENT"/>
  15.   <xsl:variable name="filename">
  16.     <xsl:apply-templates select="." mode="chunk-filename"/>
  17.   </xsl:variable>
  18.  
  19.   <xsl:variable name="chunk">
  20.     <xsl:call-template name="chunk"/>
  21.   </xsl:variable>
  22.  
  23.   <xsl:if test="$chunk != 0">
  24.     <xsl:call-template name="indent-spaces"/>
  25.     <tocentry xmlns="http://www.w3.org/1999/xhtml" linkend="{@id}">
  26.       <xsl:processing-instruction name="dbhtml">
  27.         <xsl:text>filename="</xsl:text>
  28.         <xsl:value-of select="$filename"/>
  29.         <xsl:text>"</xsl:text>
  30.       </xsl:processing-instruction>
  31.       <xsl:text>
  32. </xsl:text>
  33.       <xsl:apply-templates mode="toc" select="$nodes"/>
  34.       <xsl:call-template name="indent-spaces"/>
  35.     </tocentry>
  36.     <xsl:text>
  37. </xsl:text>
  38.   </xsl:if>
  39. </xsl:template>
  40.  
  41. <xsl:template name="indent-spaces">
  42.   <xsl:param name="node" select="."/>
  43.   <xsl:text>  </xsl:text>
  44.   <xsl:if test="$node/parent::*">
  45.     <xsl:call-template name="indent-spaces">
  46.       <xsl:with-param name="node" select="$node/parent::*"/>
  47.     </xsl:call-template>
  48.   </xsl:if>
  49. </xsl:template>
  50.  
  51. <!-- ==================================================================== -->
  52.  
  53. <xsl:template match="/" priority="-1">
  54.   <xsl:text>
  55. </xsl:text>
  56.   <toc xmlns="http://www.w3.org/1999/xhtml" role="chunk-toc">
  57.     <xsl:text>
  58. </xsl:text>
  59.     <xsl:apply-templates select="/" mode="toc"/>
  60.   </toc>
  61.   <xsl:text>
  62. </xsl:text>
  63. </xsl:template>
  64.  
  65. </xsl:stylesheet>
  66.