home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / apache / apache_2.0.45-win32-x86-no_ssl.msi / Data.Cab / F233076_manualpage.xsl < prev    next >
Extensible Markup Language  |  2002-12-11  |  2KB  |  77 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
  3. <xsl:stylesheet version="1.0"
  4.               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.                   xmlns="http://www.w3.org/1999/xhtml">
  6.  
  7.   <!--                                                    -->
  8.   <!-- <manualpage>                                       -->
  9.   <!-- Process an entire document into an HTML page       -->
  10.   <!--                                                    -->
  11.   <xsl:template match="manualpage">
  12.     <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
  13.       <xsl:call-template name="head"/>
  14.  
  15. <xsl:text>
  16. </xsl:text> <!-- insert line break -->
  17.  
  18.       <body id="manual-page">
  19.         <xsl:call-template name="top"/>          
  20.  
  21.         <div id="page-content">
  22.           <div id="preamble">        
  23.             <h1>
  24.               <xsl:value-of select="title"/>
  25.             </h1>
  26.  
  27.             <xsl:apply-templates select="summary"/>
  28.           </div> <!-- /preamble -->
  29.           
  30. <xsl:text>
  31. </xsl:text> <!-- insert line break -->
  32.  
  33.           <xsl:if test="count(section) > 1 or seealso">
  34.             <div id="quickview">
  35.               <xsl:if test="count(section) > 1">
  36.                 <ul id="toc">
  37.                   <xsl:apply-templates select="section" mode="index"/>
  38.                 </ul>
  39.               </xsl:if>
  40.  
  41.               <xsl:if test="seealso">
  42.                 <h3>
  43.                   <xsl:value-of select="$messages/message[@name='seealso']"/>
  44.                 </h3>
  45.                 <ul class="seealso">
  46.                   <xsl:for-each select="seealso">
  47.                     <li>
  48.                       <xsl:apply-templates/>
  49.                     </li>
  50.                   </xsl:for-each>
  51.                 </ul>
  52.               </xsl:if>
  53.  
  54.         </div> <!-- /quickview -->
  55.  
  56. <xsl:text>
  57. </xsl:text> <!-- insert line break -->
  58.  
  59.           </xsl:if>
  60.  
  61.           <xsl:apply-templates select="section"/>
  62.         </div> <!-- /page-content -->
  63.  
  64. <xsl:text>
  65. </xsl:text> <!-- insert line break -->
  66.  
  67.         <xsl:call-template name="bottom"/>
  68.  
  69. <xsl:text>
  70. </xsl:text> <!-- insert line break -->
  71.  
  72.       </body>
  73.     </html>
  74.   </xsl:template>
  75.  
  76. </xsl:stylesheet>
  77.