We haven't tried on our side yet, but OXF should definitely work on
Resin (version 2.1 support the Servlet 2.3 API, and their version
3.0.3 supports the latest Servlet 2.4 API draft).

They have a Servlet filter that applies a stylesheet on XML output
generated by Servlet (or JSP). OXF can also operate in this mode, with
the Servlet Filter and Servlet Include Generator, but of course OXF
allows using XPL, not just an XSTL transformation. So for this part,
there doesn't seem to be much valuable in Resin compared to OXF. Note
that OXF is also able to parse HTML with its URL, Servlet Filter, and
Servlet Include generators.

From what I understand (their documentation on this particular subject
is quite confusing), XTP files look more like JSP files, but they can
also be strict XML. They are parsed and transformed into an XML
DOM. Then an XSLT transformation is applied to the DOM to generate a
JSP page, which is then compiled as usual. Stylesheets can be selected
dynamically. So in principle XTP appears to be a pre-processing step
before JSP.

One benefit of the approach is that the page is compiled into a Java
class and therefore its execution is potentially quite efficient,
however, a lot of flexibility is removed. For example, if you are
using JSP tags that generate XML, for example JavaServer Faces tags,
you are going to have to process their output as well, so all in all
you have added complexity to the system. I think the approach may have
merit in certain cases, but all in all, if you are going to use JSP, I
think the architecture is clearer with JSP at the beginning of the
chain, followed by XSLT / XPL processing.

One possibility of integration would be to use OXF instead of just an
XSLT transformation in XTP. I don't know if Resin provides the
plugging functionality though.

-Erik

Scott McMullan wrote:

> Does anyone have any experience with running OXF on Caucho's Resin
> Servlet/JSP container?  It's very fast. ( http://www.caucho.com/ )
>
> I realize this is a vague question, but any "synergy" between XPL and the
> XSLT or XTP support found in Resin?
>
> -Scott
> UC Berkeley Center for Document Engineering

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to