Feature Request
Monday, 12 July 2010 · 4 messages · last reply 14 Jul 2010
AC
Andy Chambers12 Jul 2010 02:05 #
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
CG
Christian Grün12 Jul 2010 12:16 #
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/jaxrx/core/URLConstants.java
…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!
Quoted text · Andy Chambers · 27 lines
On Mon, Jul 12, 2010 at 2:05 AM, Andy Chambers <achambers.home at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AC
Andy Chambers14 Jul 2010 15:55 #
Quoted text · Christian Grün · 25 lines
On Mon, Jul 12, 2010 at 11:16 AM, Christian Grün <christian.gruen at gmail.com> wrote: > 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/jaxrx/core/URLConstants.java > > …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.
That's food for thought. It'll be a while before I can get something together (my Java is a little rusty)
but I'll keep you informed.
The addition to the lisp binding shouldn't take long.
Cheers,
Andy
CG
Christian Grün14 Jul 2010 18:28 #
Quoted text · Andy Chambers · 3 lines
> That's food for thought. It'll be a while before I can get something > together (my Java is a little rusty) > but I'll keep you informed.
Perfect – take your time. And don't hesitate to ask if you should struggle with the existing code base.
Christian
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery