At the moment we are doing something like that by using the Cocoon publishing framework. I have created a simple XSP-file which performes a tamino-query based on some parameters I pass to the page. This output is then transformed to HTML, PDF, SVG, … or some user defined format … works fine for us. But I think this solution is only usefull when doing a lot of XSL transformations ( in a webapplication ).
If you would like some more Information about Cocoon, simply go to http://xml.apache.org and select the Cocoon2.0 Project or simply contact me.
Even if I use Cocoon, I will have to open an input stream to read from an URL, which is equivalent to reading data from Tamino’s pass-thru servlet output (the solution I have chosen).
All this returns “flat” data, ie. text representation of data and not a DOM document, as I would like to do, in an ideal world.
Hi David, You can use Xalan Transformers to transform DOMSource objects into DOMResult objects. I’ve attached an example that uses the new Tamino Java API to return a series of DOM2 objects, which are then transformed using Xalan and a provided example xsl sheet. The result of the transformations is a series of DOMResult objects, and in the example I’ve serialized these to an output file. Hope it’s useful. TransformDOM.zip (18.8 KB)