Hello,
Does anybody has experience in using BaseX in the Cocoon framework?
Currently I'm using eXist with Cocoon (by the XML:DB protocol). I would be interested to use BaseX with Cocoon. Now I'm wondering if anybody tried this and can give me some hints.
Cheers, Achim
On 01/24/2011 12:52 PM, Joachim Wackerow wrote:
Hello,
Does anybody has experience in using BaseX in the Cocoon framework?
Currently I'm using eXist with Cocoon (by the XML:DB protocol). I would be interested to use BaseX with Cocoon. Now I'm wondering if anybody tried this and can give me some hints.
It shouldn't be too hard to implement a simple Generator. Should be more or less straight forward, wrapping the SAX output into the pipeline.
Maybe transformers are more difficult to write, but that depends on what exactly you try to do. Filtering with XPath/XQuery expressions should be straight forward, too. Transformation with XSLT would require an XSLT processor, since I think BaseX currently lacks support, but if I'm not wrong XSLT (2.0) will be implemented in the future!? In case of very big XML files and the limited ways of streaming XSLT I could think of an intermediate transformer which selects parts of the XML file/internal BaseX encoding and pipes the results to the XSLT transformer.
BTW: I'm not sure if Cocoon is still going to be actively developed. Seems the core developers currently haven't got enough spare time to really bring it forward (Cocoon 3).
regards, Johannes
Johannes,
Thank you for your answer. This is helpful. I will further explore the simple Generator and probably also the filtering. I was hoping somebody did it already :) .
My project is using Cocoon 2.1 (maybe migrating to 2.2). I have also the impression that currently Cocoon 3 is no alternative.
Cheers, Achim
On 24.01.2011 13:17, Johannes.Lichtenberger wrote:
On 01/24/2011 12:52 PM, Joachim Wackerow wrote:
Hello,
Does anybody has experience in using BaseX in the Cocoon framework?
Currently I'm using eXist with Cocoon (by the XML:DB protocol). I would be interested to use BaseX with Cocoon. Now I'm wondering if anybody tried this and can give me some hints.
It shouldn't be too hard to implement a simple Generator. Should be more or less straight forward, wrapping the SAX output into the pipeline.
Maybe transformers are more difficult to write, but that depends on what exactly you try to do. Filtering with XPath/XQuery expressions should be straight forward, too. Transformation with XSLT would require an XSLT processor, since I think BaseX currently lacks support, but if I'm not wrong XSLT (2.0) will be implemented in the future!? In case of very big XML files and the limited ways of streaming XSLT I could think of an intermediate transformer which selects parts of the XML file/internal BaseX encoding and pipes the results to the XSLT transformer.
BTW: I'm not sure if Cocoon is still going to be actively developed. Seems the core developers currently haven't got enough spare time to really bring it forward (Cocoon 3).
regards, Johannes
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Op 24 jan 2011, om 12:52 heeft Joachim Wackerow het volgende geschreven:
Hello,
Hi Joachim,
Does anybody has experience in using BaseX in the Cocoon framework?
Currently I'm using eXist with Cocoon (by the XML:DB protocol). I would be interested to use BaseX with Cocoon. Now I'm wondering if anybody tried this and can give me some hints.
I'm using the REST interface to communicate with BaseX from Cocoon. Using REST it makes it easy to switch XML databases, should the need arise (because of company policy for instance, not because BaseX is not capable enough or something like that). I'm using the RESTTransformer from the cocooncomponents project on Google code. So I can't comment on the Java language binding in BaseX, but I imagine it shouldn't be too hard to create a transformer using that, there are lots of examples on the wiki.
I started out with eXist but due to some technical difficulties I switched to BaseX. BaseX and me are working together for the first time and I am quite pleased with it. Very robust, very speedy. Nice GUI. Everything cool.
Huib Verweij.
Huib,
Thanks a lot. The approach with the REST interface is a helpful hint. I like the flexibility of that.
The RESTTransformer seems to be your contribution, right? Does it work with Cocoon 2.1 or 2.2?
Cheers, Achim
On 24.01.2011 13:34, Huib Verweij wrote:
Op 24 jan 2011, om 12:52 heeft Joachim Wackerow het volgende geschreven:
Hello,
Hi Joachim,
Does anybody has experience in using BaseX in the Cocoon framework?
Currently I'm using eXist with Cocoon (by the XML:DB protocol). I would be interested to use BaseX with Cocoon. Now I'm wondering if anybody tried this and can give me some hints.
I'm using the REST interface to communicate with BaseX from Cocoon. Using REST it makes it easy to switch XML databases, should the need arise (because of company policy for instance, not because BaseX is not capable enough or something like that). I'm using the RESTTransformer from the cocooncomponents project on Google code. So I can't comment on the Java language binding in BaseX, but I imagine it shouldn't be too hard to create a transformer using that, there are lots of examples on the wiki.
I started out with eXist but due to some technical difficulties I switched to BaseX. BaseX and me are working together for the first time and I am quite pleased with it. Very robust, very speedy. Nice GUI. Everything cool.
Huib Verweij.
Joachim,
Op 25 jan 2011, om 18:26 heeft Joachim Wackerow het volgende geschreven:
Thanks a lot. The approach with the REST interface is a helpful hint. I like the flexibility of that.
I'll be looking into XQJ to make a transformer, hopefully soon, but don't hold your breath! I would also like to hear from you if you create one!
The RESTTransformer seems to be your contribution, right? Does it work with Cocoon 2.1 or 2.2?
Should work with both.
Regards,
Huib.
Thanks Huib.
I'll keep you posted. Achim
On 26.01.2011 21:59, Huib Verweij wrote:
Joachim,
Op 25 jan 2011, om 18:26 heeft Joachim Wackerow het volgende geschreven:
Thanks a lot. The approach with the REST interface is a helpful hint. I like the flexibility of that.
I'll be looking into XQJ to make a transformer, hopefully soon, but don't hold your breath! I would also like to hear from you if you create one!
The RESTTransformer seems to be your contribution, right? Does it work with Cocoon 2.1 or 2.2?
Should work with both.
Regards,
Huib.
basex-talk@mailman.uni-konstanz.de