I've been wondering if it would be possible to save the result of a
cocoon pipeline directly to the eXist database.
What I'd like to do in cocoon is:
1. Generate sql query for the sql transformer.
2. Query some database using the sql transformer.
3. Transform the result into some xml format using the xslt transformer.
4. Serialize the result directly to eXist.
As far as I know, there is no "eXist serializer" available at the
moment. Is there some other method I haven't thought of to accomplish my
goal? If not, would it be difficult to write such a serializer myself?
From: Wolfgang Meier <wolfgangmm@gm...> - 2007-05-24 08:37:33
> As far as I know, there is no "eXist serializer" available at the
> moment. Is there some other method I haven't thought of to accomplish my
> goal? If not, would it be difficult to write such a serializer myself?
I'm not aware of a method to serialize the pipeline output to eXist,
but maybe I missed something. Writing your own serializer should not
be very difficult though. I would start from one of the existing
On Thu, 2007-05-24 at 11:18 +0200, Gerrit boers wrote:
> Perhaps you can do it through flowscript. Load the result of the
> pipeline into a document and save it through the xmlDB api.
funny that I didn't think about flowscript myself. I already use it in
my application like you do to save a document to eXist that was created
by a cform . But I didn't have the idea that I could also get the result
of a pipeline in my flowscript and simply store that in the database.
Well it worked, problem solved in about 10 minutes, thanks a lot for
PS: I still believe it would be nice to have a "real" cocoon eXist
serializer tough. Maybe I'll write one someday :-)
Get latest updates about Open Source Projects, Conferences and News.