Hi Gary,

The XSLTService takes XML input and transforms it with an XSL stylesheet
placed in the directory that you specify in the TR.properties.  It only
exposes a transform() method, which you use to do the transformation.

The VelocityXslLayout assumes that your Velocity Layout/Screen/Navigations
are XML templates instead of HTML templates.  So the
Layout/Screen/Navigations work exactly the same as in HTML, but before the
result is sent of to the user an XSL transformation is done on the content.
VelocityXslLayout also assumes that you have correctly set up XSLTService.

If you need to sometimes do a transformation and not on others, you need to
tell a screen which layout to use.  You can use setLayout to make it use the
VelocityXslLayout when you need transform.  You can also implement your own
layout class and let this class decide when to do a transform and when not.

~ Leon

p.s. Remember to turn on XSLT caching in your TR.properties for production,
otherwise you're site is going to be SLLOOOOWWWWWW.

>
> The xdocs say to look at VelocityXslLayout.java for usage examples,
> but the source file only tells how to enable the service in the tr.props;
> where can I learn how to actually invoke the service?
>
> What I'd want is to have my new DefaultLayout detect that the request
> really wants an XML doc, and have it setLayout (or setLayoutTemplate?)
> to the XML case, but what happens next?
>
> --
> Gary Lawrence Murphy <[EMAIL PROTECTED]> TeleDynamics Communications Inc
> Business Innovations Through Open Source Systems: http://www.teledyn.com
> "Computers are useless.  They can only give you answers."(Pablo Picasso)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to