> except because I'm
> using turbine, turbine threats the .vm file as a screen and
> adds the html
> tags for the header and navigation to the resulting file and
> saves it as a
> html file.
1. In TR.props change from:
services.VelocityService.default.layout = VelocityECSLayout
to
services.VelocityService.default.layout = VelocityOnlyLayout
2. Create a new layout template "Blank.vm".
3. use RunData.setLayoutTemplate("Blank.vm") either in an action class,
screen class or within the template itself ($data).
This should keep turbine from sticking unwanted HTML into the end product.
I use this to create external style sheets that are themsleves velocity
templates and it works great.
hth,
Scott
> -----Original Message-----
> From: Brian Kidney [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 2:52 PM
> To: Turbine Users List
> Subject: Re: Velocity and FOP
>
>
> > Check out the DVSL sub-project, it may or may not be an
> alternative to
> what
> > you want to do.
> >
> > http://jakarta.apache.org/velocity/dvsl/index.html
> >
>
> Thanks, I'm aware of dvsl, but it isn't quiet what I want.
>
> I'm very close to the solution, but not quiet there.
> I put the XSL FO file (which is mostly static) in the .vm file and use
> velocity to get the few variable parts, and this works,
> except because I'm
> using turbine, turbine threats the .vm file as a screen and
> adds the html
> tags for the header and navigation to the resulting file and
> saves it as a
> html file.
>
> I would like to be able to get turbine to threat this vm file not as a
> screen, but instead save it as a fo file and not add anything to it.
> I would think that this should be very easily done, perhaps
> just a setting
> in a properties file somewhere?
>
> Again, thanks for you help.
>
> Brian
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>