It seems that they are using standard webapps to serve documents, so one approach would be to create a servlet filter that would intercept the response before it goes back to the client, and then perform the XSLT needed. By looking at the URLs involved, you should be able to determine which servlet to filter (or, alternatively, you could filter based on the URL, if all the responses you want to transform conform to a particular URL pattern)