home *** CD-ROM | disk | FTP | other *** search
/ Organic Chemistry (8th Edition) / Image.iso / pc / organic / media / content / pages.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-12-17  |  1.2 KB  |  33 lines

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <!-- Edugen XSL Stylesheets V1.0 =======================================
  5.  
  6.      File pages.xsl for Organic View
  7.  
  8.      This file is part of the Edugen XSL Stylesheets.
  9.      Copyright (c) 2002 WWL Corp. - A Subsidiary of John Wiley & Sons, Inc.
  10. ========================================================================= -->
  11. <xsl:output method="html" indent="yes"/>
  12.  
  13. <xsl:template match="/">
  14.     <xsl:for-each select="project/chapter">
  15.         <xsl:variable name="m_file"><xsl:value-of select="@href"/></xsl:variable>
  16.         <xsl:apply-templates select="document($m_file)/chapter"/>
  17.     </xsl:for-each>
  18. </xsl:template>
  19.  
  20. <xsl:template match="chapter">
  21.     <xsl:apply-templates select="section | item"/>
  22. </xsl:template>
  23.  
  24. <xsl:template match="section">
  25. <!-- xt <xsl:value-of select="../@id"/>.xml page.xsl <xsl:value-of select="../@id"/>/<xsl:value-of select="@id"/>.xml id=<xsl:value-of select="@id"/> -->
  26. <xsl:apply-templates select="item"/>
  27. </xsl:template>
  28.  
  29. <xsl:template match="item">
  30. xt <xsl:value-of select="../../@id"/>.xml page.xsl <xsl:value-of select="../../@id"/>/<xsl:value-of select="@id"/>.xml id=<xsl:value-of select="@id"/>
  31. </xsl:template>
  32.  
  33. </xsl:stylesheet>