You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sergey Beryozkin <sb...@progress.com> on 2009/05/07 13:53:18 UTC

Re: How to add Stylesheet to XML returned from server?

Hi,

Just update JAXBElementProvider to check well-known Marshaller properties which might've been set earlier on in CXF 
interceptors/JAX-RS response filters on a current message - snapshots should have it starting from tomorrow

cheers, Sergey
----- Original Message ----- 
From: "Chris Marshall" <ch...@campsbayterrace.com>
To: <us...@cxf.apache.org>
Sent: Wednesday, April 08, 2009 8:56 AM
Subject: Re: How to add Stylesheet to XML returned from server?


> That would be a great help Sergey!
> Thanks Chris
>
>
> On 07/04/2009, Sergey Beryozkin <sb...@progress.com> wrote:
>>
>> Hi Chris
>>
>> it's great :-)
>> that code though may get a bit brittle if other XML-aware providers are
>> registered/found.
>> I do like the idea of updating teh JAXBElementProvider to check the
>> injected context for well-known marshaller properties
>> such that the only thing you do is to
>>
>> message.put(XML_HEADERS, "<?xml-stylesheet type='text/xsl'>
>> href=foobar.xsl'?>");
>>
>> cheers, Sergey
>>
>