You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stefan Larson <st...@itmentor.se> on 2000/11/14 17:34:21 UTC

cgi return

Hi,

Im trying to get xml output from a cgi-script.
How should i pass the information to get Cocoon to parse it?

Another option is to use Cocoon via command-line, but how do i do that?


( Cocoon 1.8/Apache/Apache Jserv (Linux RedHat7).)

---sample script---

#!/usr/bin/perl

print "Content-type: text/xml\r\n\r";
print "
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<?xml-stylesheet href=\"1.xsl\" type=\"text/xsl\"?>
<?cocoon-process type=\"xslt\"?>
<document>
<form name=\"login\" url=\"$env{'SCRIPT_NAME'}\" method=\"post\">
<username />
<password />
<submit-button label=\"Logga in\"/> <reset-button label=\"rensa\">
</form>
</document>
";