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 / site2xhtml.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  5.3 KB  |  138 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. <xsl:stylesheet
  19.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20.     version="1.0">
  21.  
  22.     <xsl:param name="header"/>
  23.  
  24. <xsl:template match="/">
  25. <html>
  26.       <head>
  27.         <title><xsl:value-of select="/site/document/title"/></title>
  28.       </head>
  29.  
  30.       <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000"
  31.             topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
  32.             bgcolor="#ffffff">
  33.         <!-- THE TOP BAR (HEADER) -->
  34.         <table width="100%" cellspacing="0" cellpadding="0" border="0">
  35.           <tr>
  36.             <td width="135" height="60" rowspan="3" valign="top" align="left">
  37.               <img width="135" height="60" src="images/logo.gif" hspace="0" vspace="0" border="0"/>
  38.             </td>
  39.             <td width="100%" height="5" valign="top" align="left" colspan="2" background="images/line.gif">
  40.               <img width="1" height="5" src="images/line.gif" hspace="0" vspace="0" border="0" align="left"/>
  41.             </td>
  42.             <td width="29" height="60"  rowspan="3" valign="top" align="left">
  43.               <img width="29" height="60" src="images/right.gif" hspace="0" vspace="0" border="0"/>
  44.             </td>
  45.           </tr>
  46.           <tr>
  47.             <!-- using svg 
  48.             <td width="100%" height="35" valign="top" align="right" colspan="2" bgcolor="#0086b2">
  49.               <img src="{$header}?label={/site/document/title}" hspace="0" vspace="0" border="0" alt="{/site/document/title}" align="right"/>           
  50.             </td>
  51.             -->
  52.             <td width="100%" height="35" valign="top" align="right" colspan="2" bgcolor="#0086b2">
  53.               <p align="right" style="color:white; font-family:arial; font-size:30px; font-style:italic">
  54.                 <xsl:value-of select="/site/document/title"/>
  55.               </p>
  56.             </td>
  57.           </tr>
  58.           <tr>
  59.             <td width="100%" height="20" valign="top" align="left" bgcolor="#0086b2" background="images/bottom.gif">
  60.               <img width="3" height="20" src="images/bottom.gif" hspace="0" vspace="0" border="0" align="left"/>
  61.             </td>
  62.             <td align="right" bgcolor="#0086b2" height="20" valign="top" width="288" background="images/bottom.gif">
  63.               <table border="0" cellpadding="0" cellspacing="0" width="288">
  64.                 <tr>
  65.                   <td width="96" height="20" valign="top" align="left">
  66.                     <a href="http://xml.apache.org/" target="new">
  67.                       <img alt="http://xml.apache.org/" width="96" height="20" src="images/button-xml-lo.gif"
  68.                            name="xml" hspace="0" vspace="0" border="0"/>
  69.                     </a>
  70.                   </td>
  71.                   <td width="96" height="20" valign="top" align="left">
  72.                     <a href="http://www.apache.org/" target="new">
  73.                       <img alt="http://www.apache.org/" width="96" height="20" src="images/button-asf-lo.gif"
  74.                            name="asf" hspace="0" vspace="0" border="0"/>
  75.                     </a>
  76.                   </td>
  77.                   <td width="96" height="20" valign="top" align="left">
  78.                     <a href="http://www.w3.org/" target="new">
  79.                       <img alt="http://www.w3.org/" width="96" height="20" src="images/button-w3c-lo.gif"
  80.                            name="w3c" hspace="0" vspace="0" border="0"/>
  81.                     </a>
  82.                   </td>
  83.                 </tr>
  84.               </table>
  85.             </td>
  86.           </tr>
  87.         </table>
  88.  
  89. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  90.     <tr width="100%">
  91.         <td width="120" valign="top"> 
  92.             <table border="0" cellpadding="0" cellspacing="0" width="120">
  93.                   <tr>
  94.                     <td align="left" valign="top">
  95.                         <img border="0" height="14" hspace="0" src="images/join.gif" vspace="0" width="120"/>
  96.                         <br/>
  97.                     </td>
  98.                 </tr>
  99.                 <xsl:copy-of select="/site/menu/node()|@*"/>
  100. <!--
  101.                 <tr>
  102.                     <td valign="top" align="left">
  103.                         <img border="0" height="14" hspace="0" src="images/close.gif" vspace="0" width="120"/>
  104.                         <br/>
  105.                     </td>
  106.                 </tr>
  107. -->
  108.             </table>
  109.         </td>
  110.         <td>
  111.             <table border="0" cellpadding="0" cellspacing="0">
  112.                 <tr><td width="100%" height="10"/></tr>
  113.                 <tr><td><xsl:copy-of select="/site/document/body/node()|@*"/></td></tr>
  114.             </table>
  115.         </td>
  116.     </tr>
  117.  </table>
  118. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  119.   <tr>
  120.     <td bgcolor="#0086b2">
  121.       <img height="1" src="images/dot.gif" width="1"/>
  122.     </td>
  123.   </tr>
  124.   <tr>
  125.     <td align="center">
  126.       <font color="#0086b2" face="arial,helvetica,sanserif" size="-1">
  127.         <i>Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.</i>
  128.       </font>
  129.     </td>
  130.   </tr>
  131. </table>
  132. </body>
  133.  
  134.  
  135. </html>
  136. </xsl:template>
  137. </xsl:stylesheet>
  138.