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 / welcome.xslt < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.4 KB  |  63 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <!-- CVS $Id: welcome.xslt,v 1.11 2004/03/06 02:25:58 antonio Exp $ -->
  19.  
  20. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  21.                               xmlns="http://www.w3.org/1999/xhtml">
  22.  
  23.   <xsl:param name="contextPath"/>
  24.  
  25.   <xsl:template match="welcome">
  26.     <html xml:lang="en" lang="en">
  27.       <head>
  28.         <title>Welcome to Apache Cocoon!</title>
  29.         <!-- 
  30.              NOTE (SM): this meta tag reflects the *output* of the pipeline and not
  31.              the encoding of this file. I agree it's sort of an hack and it should
  32.              be the XHTML serializer to add the meta tag to the response, but, for
  33.              now, this fixes encoding problems in those user-agents that don't parse
  34.              the <?xml?> processing instruction to understand the encoding of the
  35.              stream 
  36.          --> 
  37.         <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8"/>
  38.         <link href="{$contextPath}/styles/main.css" type="text/css" rel="stylesheet"/>
  39.         <link href="favicon.ico" rel="SHORTCUT ICON" />
  40.       </head>
  41.       <body>
  42.         <h1>Welcome to Apache Cocoon!</h1>
  43.         <xsl:apply-templates/>
  44.         <p class="copyright">
  45.          Copyright ┬⌐ 1999-2004 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
  46.         </p>
  47.         <p class="block">
  48.           <a href="http://cocoon.apache.org/"><img src="{$contextPath}/images/powered.gif" alt="Powered by Apache Cocoon"/></a>
  49.         </p>
  50.       </body>
  51.     </html>
  52.   </xsl:template>
  53.  
  54.   <xsl:template match="message">
  55.     <p class="block"><xsl:apply-templates/></p>
  56.   </xsl:template>
  57.   
  58.   <xsl:template match="link">
  59.     <a href="{@href}"><xsl:apply-templates/></a>
  60.   </xsl:template>
  61.  
  62. </xsl:stylesheet>
  63.