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