XsltFilter

From Resin 3.0

Revision as of 03:50, 1 December 2005 by Ferg (Talk | contribs)
Jump to: navigation, search

Documentation is at http://www.caucho.com/resin-3.0/servlet/filter-library.xtp#XsltFilter

resin-web.xml

<filter filter-name="xslt"
         filter-class="com.caucho.filters.XsltFilter"/>


Enabling the XSLT stylesheet in the servlet or JSP

Once the filter is configured, you can filter servlet or JSP output by setting the content-type to x-application/xslt.

test.jsp

<% response.setContentType("x-application/xslt"); %>
<top>
  <section title="Top Section">
    <p>This is some sample text.</p>
  </section>
</top>
Personal tools