Andy,
thanks for your generous offer! Yes, your contributions to our code base would be more than welcome. XSLTs are a frequently requested feature, so we'd be happy to have it included in BaseX. As we haven't put too many thoughts on how to best include it, I'm open to your ideas and comments from other users.
Regarding our REST/JAX-RX API, this might be a good place to start with. Documentation on JAX-RX is still in progress, so I'll point you to the Sourceforge link and SVN Repository:
– Sourceforge: http://jax-rx.sourceforge.net/ – Repository: https://svn.uni-konstanz.de/public/jax-rx/
We've indeed allowed for an "xsl" query parameter in the JAX-RX…
https://svn.uni-konstanz.de/public/jax-rx/trunk/jax-rx/src/main/java/org/jax...
…which isn't supported in BaseX.
Another (or the next) approach could be to add XSLT as a database command, which could be called by REST.
All the best, Christian
PS: We've updated our BaseX bindings, adding a query iterator and exception handling. If you're willing to contribute an updated version of your LISP binding, that would be great as well!
On Mon, Jul 12, 2010 at 2:05 AM, Andy Chambers achambers.home@gmail.com wrote:
Hi Christian,
A while ago, you were soliciting feature requests so here's mine :-)
It would be nice if there was some way to perform XSLT transforms on the results of a query.
I'd be happy to implement this if you gave me a few pointers about where you think it would fit in the best. My guess would be to make a XSLT filter and attach it to the OutputStream that is passed to Proc.exec.
I'm not sure about how to decide when to apply which stylesheets so I'm open to suggestions here. From a user point of view, I think it would be nice to have a "style" parameter on the REST interface that allows one to specify a stylesheet.
Cheers, Andy _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk