> From: Chad Johnson [mailto:[EMAIL PROTECTED]]
> 
>   Yes, currently I am parsing the stylesheet every page view.  Just a
note
> of clarification.  When I say '1s execution time' I'm talking about
the
> total time the application takes to fire up, do the transform, then
stop.
> 
>   What methods would you suggest to skip the translation step every
page
> view?

You might consider using a simple MVC framework like Maverick.  Maverick
lets you define commands (urls) in a config file like this:

  <command name="runQuery">
    <controller type="org.infohazard.example.controller.RunQuery"/>
                
    <view name="success">
      <domify node="result">
        <transform path="queryResult.xsl"/>
        <transform path="lookAndFeel.xsl"/>
      </domify>
    </view>

    <view name="error">
      <domify node="error">
        <transform path="queryFailed.xsl"/>
        <transform path="lookAndFeel.xsl"/>
      </domify>
    </view>
  </command>

The "domify" automatically wraps the JavaBeans model in a DOM façade,
but you can also generate content from JSP, Velocity, and static
documents.  Caching of XSLT templates is of course handled for you.  So
far, observed performance is great.

The URL is:  http://mav.sourceforge.net

You might also want to look at Cocoon, but that is a *lot* more
complicated.

Jeff Schnitzer
[EMAIL PROTECTED]

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to