home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _6763F38A600E4E9E92635D0EADF9BFB0 < prev    next >
Encoding:
Extensible Markup Language  |  2002-09-04  |  2.9 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:template name="generate.manifest">
  7.   <xsl:param name="node" select="/"/>
  8.   <xsl:call-template name="write.text.chunk">
  9.     <xsl:with-param name="filename" select="$manifest"/>
  10.     <xsl:with-param name="method" select="'text'"/>
  11.     <xsl:with-param name="content">
  12.       <xsl:apply-templates select="$node" mode="enumerate-files"/>
  13.     </xsl:with-param>
  14.     <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
  15.   </xsl:call-template>
  16. </xsl:template>
  17.  
  18. <xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |reference|refentry                      |sect1|sect2|sect3|sect4|sect5                      |section                      |book/glossary|article/glossary                      |book/bibliography|article/bibliography                      |book/index|article/index                      |colophon" mode="enumerate-files">
  19.   <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable>
  20.   <xsl:if test="$ischunk='1'">
  21.     <xsl:call-template name="make-relative-filename">
  22.       <xsl:with-param name="base.dir" select="$base.dir"/>
  23.       <xsl:with-param name="base.name">
  24.         <xsl:apply-templates mode="chunk-filename" select="."/>
  25.       </xsl:with-param>
  26.     </xsl:call-template>
  27.     <xsl:text>
  28. </xsl:text>
  29.   </xsl:if>
  30.   <xsl:apply-templates select="*" mode="enumerate-files"/>
  31. </xsl:template>
  32.  
  33. <xsl:template match="legalnotice" mode="enumerate-files">
  34.   <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  35.   <xsl:if test="$generate.legalnotice.link != 0">
  36.     <xsl:call-template name="make-relative-filename">
  37.       <xsl:with-param name="base.dir" select="$base.dir"/>
  38.       <xsl:with-param name="base.name" select="concat('ln-',$id,$html.ext)"/>
  39.     </xsl:call-template>
  40.     <xsl:text>
  41. </xsl:text>
  42.   </xsl:if>
  43. </xsl:template>
  44.  
  45. <xsl:template match="mediaobject[imageobject] | inlinemediaobject[imageobject]" mode="enumerate-files">
  46.   <xsl:variable name="longdesc.uri">
  47.     <xsl:call-template name="longdesc.uri">
  48.       <xsl:with-param name="mediaobject" select="."/>
  49.     </xsl:call-template>
  50.   </xsl:variable>
  51.   <xsl:variable name="mediaobject" select="."/>
  52.  
  53.   <xsl:if test="$html.longdesc != 0 and $mediaobject/textobject[not(phrase)]">
  54.     <xsl:call-template name="longdesc.uri">
  55.       <xsl:with-param name="mediaobject" select="$mediaobject"/>
  56.     </xsl:call-template>
  57.     <xsl:text>
  58. </xsl:text>
  59.   </xsl:if>
  60. </xsl:template>
  61.  
  62. <xsl:template match="text()" mode="enumerate-files">
  63. </xsl:template>
  64.  
  65. </xsl:stylesheet>
  66.