You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Miika TUISKU <mi...@cern.ch> on 2000/11/21 11:21:22 UTC
Newbie question
Hi there,
I want to embed XML-content from outside the Cocoon framework.
I've experimented with a XSP-page and a Producer-variant.
Only a special URLProducer seems to work the way
I would like to. A XSP-page would be nicer, though.
Are there any possibilities to get the following XSP-page working?
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page language="java"
xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<xsp:logic>
private static String b = "http://myserver:8066/fcgi/perlscript";
</xsp:logic>
<page>
<xsp:expr>XSPUtil.getURLContents(b + "?" +
request.getQueryString())</xsp:expr>
</page>
</xsp:page>
------------------
What it does currently it produces stuff like this:
<?xml version="1.0" encoding="UTF-8"?>
<page>
<?xml version="1.0" encoding="ISO-8859-1"?>
<page>
<node name="ROOT">
<document name="ROOT:19970506205605">
<meta-item name="EXTDEF"></meta-item>
<meta-item name="acls">
<guest>
-----------------
So basically, anything inside <page> -tags goes thru
XSPUtil.encodeMarkup -method,
which I would like avoid...
Cheers,
Miika.Tuisku@cern.ch