I have a JAX-RS web service (Jersey) that uses Eclipselink (MOXy to access some records in a DB then marshall those to XML and send back to the user in the response to the request.
The problem that I have is that the user wants a different format to the one that is being produced i.e. apply an XSLT to transform the XML before returning.
I've found this example of using XSLT with JAXB - http://blog.bdoughan.com/2012/11/using-jaxb-with-xslt-to-produce-html.html
It looks useful, but I can't see where I would intercept the XML in order to apply the XSLT before it's sent back to the user.