I'd like to add this stylesheet to the top of some of my spring REST responses. Any way of doing this? Obviously if I get a writer and do it in the controller method then return the JAXB2 generated objects in the controller method it throws a 500 internal error.
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="sources.xsl"?>
Any suggestions? This must be a common scenario but I've not found any answers through google and searching this forum?


Reply With Quote
