users@jersey.java.net

Re: [Jersey] http and xml on the same path

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 15 May 2008 18:24:39 +0200

Jo St?rset wrote:
>
> Den 15. mai. 2008 kl. 15.32 skrev Mike Jones:
>
>> How about just adding a xml-stylesheet PI to the XML?
>
> Actually, that was what i tried first.
>
> Apart from loosing support for non xsl-supporting clients, I couldn't
> figure out how I can cleanly add PI's to the otherwise default JAXB
> based xml generation.
>
> Is there an easy way of overriding the default JAXB-based xml serializer
> with one also able to add style sheet PIs?
>

The current generic way i can think of is expressed here:

https://jersey.dev.java.net/servlets/ReadMsg?listName=users&msgNo=695

Things become really tricky when you need to tweak the marshaller set up
as it can be application specific.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109