In JAXB, it's possible (using the marshaller object). I don't know how to do it using Jersey. I was wondering if there's a way I can somehow inject something like:
<?xml-stylesheet type="text/css" href="something.css"?>
in the generated xml response.
See XmlHeader annotation. Attach that to your resource method. For example like this: