cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Painter-Wakefield" <paint...@mc.duke.edu>
Subject Re: what is wrong?
Date Wed, 28 Nov 2001 21:58:23 GMT

Move this line:
<?cocoon-process type="xsp"?>
above this line:
<?cocoon-process type="xslt"?>

You are currently running your xml through the stylesheet processor before
the XSP processor.

-Christopher




Please respond to cocoon-users@xml.apache.org

To:   cocoon-users@xml.apache.org
cc:

Subject:  what is wrong?



I have problems with XSP.

-------- this file is ok ------------------
<?xml version="1.0"?>
<?xml-stylesheet href="foo.xsl" type="text/xsl"?>
<?xml-stylesheet href="foowap.xsl" type="text/xsl" media="wap"?>
<?cocoon-process type="xslt"?>
<main>
 <bla>more bla</bla>
</main>
-------------------------------------------
---------- but this won't work ------------
<?xml version="1.0"?>
<?xml-stylesheet href="foo.xsl" type="text/xsl"?>
<?xml-stylesheet href="foowap.xsl" type="text/xsl" media="wap"?>
<?cocoon-process type="xslt"?>
<?cocoon-process type="xsp"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core" xmlns:util="
http://www.apache.org/1999/XSP/Util">
<main>
 <util:include-uri><util:href>
  <xsp:expr>"http://192.168.0.1:12346/cgi-bin/nm.cgi?" +
request.getQueryString()</xsp:expr>
 </util:href></util:include-uri>
</main>
</xsp:page>
--------------------------------------------

the nm.cgi returns  something like this and it seems to be ok
--------------------------------------------
Content-type: text/xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<bla> a lot of bla </bla>
--------------------------------------------

Result of lynx http://192.168.0.1:12346/nm.xml?foo=bla
is absolutly nothing. There is only a warning in error.log:
[Wed XXXXXXX] [warn] [client 192.168.0.1] handler "cocoon" not found for:
/var/www/nm.xml

thanks for any help...
Ivo





---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message