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

  1. <?xml version="1.0" encoding="windows-1252"?>
  2.   <!--
  3.     cuckoo web authoring
  4.     form.xsl
  5.     Transformation used on PageBox site
  6.     Version 0.03
  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="form">
  22.     <![CDATA[<?php
  23.  echo "<h2>Welcome on ", $HTTP_SERVER_VARS["REQUEST_URI"], "</h2>";
  24.  echo "<p>Your browser is ", $HTTP_SERVER_VARS["HTTP_USER_AGENT"], "</p>";
  25. ]]>
  26.     <xsl:value-of select="action"/>
  27.     <xsl:if test="type='get'">
  28.     <xsl:for-each select="parm">
  29.     <![CDATA[ echo "]]> <xsl:value-of select="node()"/> <![CDATA[ = ", $HTTP_GET_VARS["]]> <xsl:value-of select="node()"/> <![CDATA["], "<br>";
  30. ]]>
  31.     </xsl:for-each>
  32.     </xsl:if>
  33.     <xsl:if test="type='post'">
  34.     <xsl:for-each select="parm">
  35.     <![CDATA[ echo "]]> <xsl:value-of select="node()"/> <![CDATA[ = ", $HTTP_POST_VARS["]]> <xsl:value-of select="node()"/> <![CDATA["], "<br>";
  36. ]]>
  37.     </xsl:for-each>
  38.     </xsl:if>
  39. <![CDATA[
  40. ?>]]>
  41.   </xsl:template>
  42. </xsl:stylesheet>
  43.