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 / page-content.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.3 KB  |  44 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2.  
  3. <!--
  4.   Copyright 1999-2004 The Apache Software Foundation
  5.  
  6.   Licensed under the Apache License, Version 2.0 (the "License");
  7.   you may not use this file except in compliance with the License.
  8.   You may obtain a copy of the License at
  9.  
  10.       http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12.   Unless required by applicable law or agreed to in writing, software
  13.   distributed under the License is distributed on an "AS IS" BASIS,
  14.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.   See the License for the specific language governing permissions and
  16.   limitations under the License.
  17. -->
  18.  
  19. <!-- process the insert-toc element -->
  20.  
  21. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  22.  
  23.     <!-- by default copy everything -->
  24.     <xsl:template match="*">
  25.         <xsl:copy>
  26.             <xsl:copy-of select="@*"/>
  27.             <xsl:apply-templates/>
  28.         </xsl:copy>
  29.     </xsl:template>
  30.  
  31.     <!-- select page content only -->
  32.     <xsl:template match="/">
  33.         <xsl:apply-templates select="//page/content"/>
  34.     </xsl:template>
  35.  
  36.     <!-- replace content with div -->
  37.     <xsl:template match="content">
  38.         <div class="pageContent">
  39.             <xsl:apply-templates/>
  40.         </div>
  41.     </xsl:template>
  42.  
  43. </xsl:stylesheet>
  44.