home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="windows-1252"?>
- <!--
- cuckoo web authoring
- form.xsl
- Transformation used on PageBox site
- Version 0.03
- Copyright (c) 2000-2001 Alexis Grandemange
- Mail: alexis.grandemange@pagebox.net
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; version
- 2.1 of the License.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Lesser General Public License for more details.
- A copy of the GNU Lesser General Public License lesser.txt should be
- included in the distribution.
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:template match="form">
- <![CDATA[<?php
- echo "<h2>Welcome on ", $HTTP_SERVER_VARS["REQUEST_URI"], "</h2>";
- echo "<p>Your browser is ", $HTTP_SERVER_VARS["HTTP_USER_AGENT"], "</p>";
- ]]>
- <xsl:value-of select="action"/>
- <xsl:if test="type='get'">
- <xsl:for-each select="parm">
- <![CDATA[ echo "]]> <xsl:value-of select="node()"/> <![CDATA[ = ", $HTTP_GET_VARS["]]> <xsl:value-of select="node()"/> <![CDATA["], "<br>";
- ]]>
- </xsl:for-each>
- </xsl:if>
- <xsl:if test="type='post'">
- <xsl:for-each select="parm">
- <![CDATA[ echo "]]> <xsl:value-of select="node()"/> <![CDATA[ = ", $HTTP_POST_VARS["]]> <xsl:value-of select="node()"/> <![CDATA["], "<br>";
- ]]>
- </xsl:for-each>
- </xsl:if>
- <![CDATA[
- ?>]]>
- </xsl:template>
- </xsl:stylesheet>
-