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>
  
  &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