File: ex2_form.xsl

package info (click to toggle)
libcgi-xmlapplication-perl 1.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 196 kB
  • sloc: perl: 522; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" encoding="ISO-8859-1"/>
    <xsl:template match="/">
        <html>
           <head><title>example 2 form</title></head>
           <body>
               <xsl:value-of select="//message"/><br/>
               <form>
               your email: <input name="email" value="{//email}"/><br/>
               <input type="submit" name="submit" value="send!"/><br/>
               </form>
           </body>
        </html>
    </xsl:template>
</xsl:stylesheet>