[
https://issues.apache.org/jira/browse/CXF-5625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942912#comment-13942912
]
Sergey Beryozkin commented on CXF-5625:
---------------------------------------
I still don't understand what is it that you are trying to achieve.
XSLTJaxbProvider in its own controls the server in/out transformations.
XMLInstruction alllows to do the browser client-side transformation.
XSLTJaxbProvider can be configured with the list of stylesheets that will do
the server-side transformation.
So,
- why do you need to have XSLTJaxbProvider use XMLInstruction if you can
configure XSLTJaxbProvider ?
- supposing XSLTJaxbProvider gets updated, how do handle a case where the
client side transformation is expected (see my question in the earlier comment)
?
> Server side xslt transformation using @XMLInstruction
> -----------------------------------------------------
>
> Key: CXF-5625
> URL: https://issues.apache.org/jira/browse/CXF-5625
> 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
> https://github.com/bystrobank/testappjava/blob/master/src/main/java/ru/ilb/common/rs/XsiXSLTJaxbProvider.java
> But realisation is hardcoded that xslt is applied to second mime type in
> @Produces annotation ("application/xhtml+xml")
> 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
> http://tomcat-bystrobank.rhcloud.com/testappjava/web/document/list
--
This message was sent by Atlassian JIRA
(v6.2#6252)