Forgive me if this is the wrong forum or off topic or plain stupid!I want to
add an xml-stylesheet reference to the document created by CXF-2.2 JAX-RS
via JAXB.
The JAXB documentation indicates something like this code to add the
xml-stylesheet to the header:
Marshaller marshaller = myContext.getJAXBContext().createMarshaller();
marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet
type='text/xsl' href='foobar.xsl' ?>");
I don't know if this is correct, or where to do it.
Do I need to write an Interceptor to do this or are there better/easier
ways?
Thanks Chris Marshall