cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miika TUISKU <miika.tui...@cern.ch>
Subject Newbie question
Date Tue, 21 Nov 2000 10:21:22 GMT
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>
  
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;

&lt;page&gt;
  &lt;node name=&quot;ROOT&quot;&gt;
    &lt;document name=&quot;ROOT:19970506205605&quot;&gt;
      &lt;meta-item name=&quot;EXTDEF&quot;&gt;&lt;/meta-item&gt;
      &lt;meta-item name=&quot;acls&quot;&gt;
        &lt;guest&gt;
    
-----------------

So basically, anything inside <page> -tags goes thru
XSPUtil.encodeMarkup -method,
which I would like avoid...


Cheers,

Miika.Tuisku@cern.ch

Mime
View raw message