home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / html-index.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.8 KB  |  79 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <!--
  19.     Generate HTML for the index of a presentation
  20.     $Id: html-index.xsl,v 1.2 2004/03/06 02:26:04 antonio Exp $
  21. -->
  22. <xsl:stylesheet
  23.     version="1.0"
  24.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  25. >
  26.     <!-- heading templates -->
  27.     <xsl:import href="heading.xsl"/>
  28.  
  29.     <xsl:variable name="pageTitle" select="/yapt-presentation/heading/presentation"/>
  30.  
  31.     <!-- output the presentation heading and the list of slides -->
  32.     <xsl:template match="/">
  33.         <html>
  34.             <head>
  35.                 <title><xsl:value-of select="$pageTitle"/></title>
  36.                 <link rel="stylesheet" type="text/css" href="css/yapt-style.css"/>
  37.             </head>
  38.             <body>
  39.                 <div id="content">
  40.                     <div id="presHeading">
  41.                         <xsl:apply-templates mode="heading" select="yapt-presentation/heading/*"/>
  42.                     </div>
  43.                     <div id="indexContents">
  44.                         <div id="slidesList">
  45.                             <h2>Slides</h2>
  46.                             <xsl:apply-templates mode="navigation" select="yapt-presentation/navigation"/>
  47.                             <h3>All slides in a single page</h3>
  48.                             <div class="slideListItem">
  49.                                 <div class="slideId">
  50.                                     -
  51.                                 </div>
  52.                                 <div class="slideTitle">
  53.                                     <a href="presentation">presentation</a>
  54.                                 </div>
  55.                             </div>
  56.                         </div>
  57.                     </div>
  58.                 </div>
  59.             </body>
  60.         </html>
  61.     </xsl:template>
  62.  
  63.     <!-- navigation links -->
  64.     <xsl:template match="slide-ref" mode="navigation">
  65.         <div class="slideListItem">
  66.             <div class="slideId">
  67.                 <xsl:value-of select="@slide-id"/>.
  68.             </div>
  69.             <div class="slideTitle">
  70.                 <a href="{concat('slide-',@slide-id)}">
  71.                     <xsl:value-of select="@title"/>
  72.                 </a>
  73.             </div>
  74.         </div>
  75.     </xsl:template>
  76.  
  77.  
  78. </xsl:stylesheet>
  79.