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 / heading.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.7 KB  |  55 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.     Templates for transforming presentation heading to HTML
  20.     $Id: heading.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.  
  27.     <!-- presentation info: display field name + value -->
  28.     <xsl:template mode="heading" match="*">
  29.         <div class="headingField">
  30.             <div class="fieldName">
  31.                 <xsl:value-of select="concat(name(),':')"/>
  32.             </div>
  33.             <div class="fieldValue">
  34.                 <xsl:value-of select="."/>
  35.             </div>
  36.         </div>
  37.     </xsl:template>
  38.  
  39.     <!-- presentation info: comment lines -->
  40.     <xsl:template mode="heading" match="line">
  41.         <p class="commentLine">
  42.             <xsl:value-of select="."/>
  43.         </p>
  44.     </xsl:template>
  45.  
  46.     <!-- presentation info: title -->
  47.     <xsl:template mode="heading" match="presentation">
  48.         <h1><xsl:value-of select="."/></h1>
  49.     </xsl:template>
  50.  
  51.     <!-- omit some presentation fields -->
  52.     <xsl:template mode="heading" match="image-directory"/>
  53.  
  54. </xsl:stylesheet>
  55.