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:
See XmlHeader annotation. Attach that to your resource method. For example like this:
@GET @Produces("application/xml") @XmlHeader("<?xml-stylesheet type=\"text/css\" href=\"something.css\"?>") public JaxbBean getSomeXml() { .... }