XML/XSLT FAQ
Resin 3.0

Features
Installation
Configuration
Web Applications
IOC/AOP
Resources
JSP
Quercus
Servlets and Filters
Databases
Admin (JMX)
CMP
EJB
Amber
EJB 3.0
Security
XML and XSLT
XTP
JMS
Performance
Protocols
Third-party
Troubleshooting/FAQ

Introduction
JAXP
User's Guide
Reference
FAQ
Scrapbook
XPath Functions
XML and XSLT
Scrapbook

  1. How do I configure Resin 3 to apply a server-side XSLT transformation?
  2. How do I indicate the stylesheet to use for the transformation?

How do I configure Resin 3 to apply a server-side XSLT transformation?

In 2.1.x I added a processing instruction and everything worked. In 2.1.x I did the following:
  1. Set the content-type to application/xsl
  2. Add a PI <?xml-stylesheet type="text/xsl" href="transform.xsl"?>

You must now explicitly enable this functionality with the use of XsltFilter .

How do I indicate the stylesheet to use for the transformation?

Resin's XsltFilter determines the stylesheet to apply from the first of:

  1. The request attribute caucho.xsl.stylesheet
  2. The processing directive <?xml-stylesheet type="text/xsl" href="...."?> in the source document
  3. default.xsl

More information is provided in the documentation for XsltFilter .


XPath Functions
XML and XSLT
Scrapbook
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.