cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-5625) Server side xslt transformation using @XMLInstruction
Date Fri, 21 Mar 2014 10:55:43 GMT


Sergey Beryozkin commented on CXF-5625:

Right, see better now what you are after. 
I think we may need to introduce a new annotation, say, @XsltTransform specific to the server
side XSLT transformation. It will have two properties, the stylesheet resource reference and
the list of media types, with only the resource reference being the required property. May
be we can also have the 'properies' property.

I'm a bit hesitant to overload XMLInstruction because it is really about having an xml instruction
added to the response; for example, if we add a mime type property there then it will make
sense for the xsl but won't for some other XML instructions.

Do you agree ?


> Server side xslt transformation using @XMLInstruction
> -----------------------------------------------------
>                 Key: CXF-5625
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.0-milestone2
>            Reporter: Vjacheslav Borisov
>            Priority: Minor
> XSLTJaxbProvider could look to @XMLInstruction to determine path to xslt transformation,
like this
>     @Produces({"text/xml", "application/xhtml+xml"})
>     @XMLInstruction("<?xml-stylesheet type=\"text/xsl\" href=\"../../stylesheets/testappjava/document.xsl\"?>")
> Like this
> But realisation is hardcoded that xslt is applied to second mime type in @Produces annotation
> May be this hardcode is not applicable in public library
> This can be used to write service that can be used both with server-side and client-side
xslt transformation identically or to serve xml or html  based on Accept: header
> Deployed application

This message was sent by Atlassian JIRA

View raw message