home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2003 October / PCWELT_10_2003.ISO / pcwsoft / CUCKOO.z.exe / cuckoo-php.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-12-03  |  3.1 KB  |  82 lines

  1. <?xml version="1.0" encoding="windows-1252"?> 
  2.   <!--
  3.     cuckoo web authoring
  4.     cuckoo-default.xsl
  5.     ASP transformation
  6.     Version 0.01
  7.     Copyright (c) 2000-2001 Alexis Grandemange
  8.     Mail: alexis.grandemange@pagebox.net
  9.     This program is free software; you can redistribute it and/or
  10.     modify it under the terms of the GNU Lesser General Public
  11.     License as published by the Free Software Foundation; version
  12.     2.1 of the License.
  13.     This library is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16.     GNU Lesser General Public License for more details.
  17.     A copy of the GNU Lesser General Public License lesser.txt should be
  18.     included in the distribution.
  19.   --> 
  20.   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  21.   <xsl:template match="cuckoo">
  22.     <html>
  23.     <head>
  24.     <xsl:copy>
  25.       <xsl:apply-templates select="info"/>
  26.     </xsl:copy>
  27.     <link rel="stylesheet" href="cuckoo.css" type="text/css"/>
  28.     <script src="cuckoo.js"></script></head><body>
  29.     <div id="tooltip" style="position:absolute;visibility:hidden;border:1px solid black;font-size:small;layer-background-color:#ffffaa;color:black;background:#ffffaa;padding:1px">
  30.     </div>
  31.     <xsl:copy>
  32.       <xsl:apply-templates select="document('pagebox.xml')/site/header"/>
  33.     </xsl:copy>
  34.     <table><tr><td valign="top">
  35.     <xsl:copy>
  36.       <xsl:apply-templates select="content"/>
  37.     </xsl:copy>
  38.     <p align="center">
  39.     <xsl:copy>
  40.       <xsl:apply-templates select="document('pagebox.xml')/site/footer"/>
  41.     </xsl:copy>
  42.     </p>
  43.     </td><td valign="top" align="left" width="250">
  44.     <table><tr><td style="background-color:#99ff99">
  45.     <xsl:processing-instruction name="php">include("cuckoo-news.html"); ?</xsl:processing-instruction>
  46.     </td></tr></table>
  47.     <p> </p>
  48.     <xsl:copy>
  49.       <xsl:apply-templates select="toc"/>
  50.     </xsl:copy>
  51.     <br/>
  52.     <xsl:copy>
  53.       <xsl:apply-templates select="document('pagebox.xml')/site/map"/>
  54.     </xsl:copy>
  55.     <table><tr><td><img src="cuckoo.gif" alt="Cuckoo mark"/></td><td width="5"> </td>
  56.     <td width="120" style="font-family:Verdana;color:#ff8080;background-color:#99ff99;font-weight:bold;margin-top:5px;margin-botton:5px">
  57.     Cuckoo generated</td></tr></table>
  58.     </td></tr>
  59.     </table></body></html>
  60.   </xsl:template>
  61.   <xsl:template match="info">
  62.     <xsl:copy-of select="node()"/>
  63.   </xsl:template>
  64.   <xsl:template match="content">
  65.     <xsl:copy-of select="node()"/>
  66.   </xsl:template>
  67.   <xsl:template match="toc">
  68.     <xsl:copy-of select="node()"/>
  69.   </xsl:template>
  70.   <xsl:template match="header">
  71.     <xsl:copy-of select="node()"/>
  72.   </xsl:template>
  73.   <xsl:template match="footer">
  74.     <xsl:copy-of select="node()"/>
  75.   </xsl:template>
  76.   <xsl:template match="map">
  77.     <table class="map-table"><tr><th class="map-title">Map</th></tr><tr><td><p>
  78.     <xsl:copy-of select="node()"/>
  79.     </p></td></tr></table>
  80.   </xsl:template>
  81. </xsl:stylesheet>
  82.