hi,
please could you give me a hand with this.
need help
ok ive got this far, needed to create an HTML form with a text input field - which ive done
what i need to do - using xml&xsl, create an HTML form
that submits to the page that i created (the xml & xsl file
i created that generated an HTML page saying Hello World)
which will be modified to display any text entered by the user instead of Hello World.
i ran it it does not work, where am i going wrong?
my xml is not picking up what i type in the message field
any help please?
using apache webserver with cocoon
XML FILE
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="ref.xsl" type="text/xsl"?>
<xspage
xmlns:xsp=" language="java"
>
<xsp:logic>
String msg = "Hello, world!";
</xsp:logic>
<title>
<xsp:expr>msg</xsp:expr>
</title>
</xspage>
xsl file
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="
<xsl:template match="/">
<h1 style="color:green;"><xsl:value-of select="//title"/></h1>
</xsl:template>
</xsl:stylesheet>
HTML FILE
<html>
<head>
</head>
<body>
<form name="input" action="/resweb/arif/ref.xml">
Message Text:
<input id="user" type="text" name="user">
<input type="submit" value="Submit">
</form>
</body>
</html>
thanks
arif
please could you give me a hand with this.
need help
ok ive got this far, needed to create an HTML form with a text input field - which ive done
what i need to do - using xml&xsl, create an HTML form
that submits to the page that i created (the xml & xsl file
i created that generated an HTML page saying Hello World)
which will be modified to display any text entered by the user instead of Hello World.
i ran it it does not work, where am i going wrong?
my xml is not picking up what i type in the message field
any help please?
using apache webserver with cocoon
XML FILE
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="ref.xsl" type="text/xsl"?>
<xspage
xmlns:xsp=" language="java"
>
<xsp:logic>
String msg = "Hello, world!";
</xsp:logic>
<title>
<xsp:expr>msg</xsp:expr>
</title>
</xspage>
xsl file
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="
<xsl:template match="/">
<h1 style="color:green;"><xsl:value-of select="//title"/></h1>
</xsl:template>
</xsl:stylesheet>
HTML FILE
<html>
<head>
</head>
<body>
<form name="input" action="/resweb/arif/ref.xml">
Message Text:
<input id="user" type="text" name="user">
<input type="submit" value="Submit">
</form>
</body>
</html>
thanks
arif