cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: Including XML output from remote sources via XSP?
Date Fri, 07 Jul 2000 18:27:20 GMT
On Fri, 7 Jul 2000, Schweigl, Johann wrote:

> Hi all,
> I'm quite new to Cocoon so maybe the question is already answered many times
> but I coulnd't find an sufficient answer. 
> My problem is the following: Inside a XSP page I call some java code that
> gets data from a remote XML store. The document returned is a complete,
> valid XML document. Now I need to feed the whole stuff through Cocoon's XSL
> renderer. 
> Example:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="response.xsl" type="text/xsl"?>
> ... <xsp:logic> private String execXQL(String) code </xsp:logic>
> <page>
>    <xsp:expr>execXQL("some XQL query")</xsp:expr>
> <page>

In this instance, you may be better off writing your own custom
producer. However, in either case, you're going to have to parse the
string returned from the remote XML store into a DOM object and return
that instead of a String.

- donald

View raw message