Class VelocityXslLayout
- java.lang.Object
-
- org.apache.turbine.modules.layouts.VelocityLayout
-
- org.apache.turbine.modules.layouts.VelocityOnlyLayout
-
- org.apache.turbine.modules.layouts.VelocityXslLayout
-
public class VelocityXslLayout extends VelocityOnlyLayout
This Layout module allows Velocity XML templates to be used as layouts.
Once the (XML) screen and navigation templates have been inserted into the layout template the result is transformed with a XSL stylesheet. The stylesheet (with the same name than the screen template) is loaded and executed by the XSLT service, so it is important that you correctly set up your XSLT service. If the named stylsheet does not exist the default.xsl stylesheet is executed. If default.xsl does not exist the XML is merely echoed.
Since dynamic content is supposed to be primarily located in screens and navigations there should be relatively few reasons to subclass this Layout.- Version:
- $Id$
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.modules.layouts.VelocityLayout
log, prefix, velocityService
-
Fields inherited from interface org.apache.turbine.modules.Layout
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocityXslLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doBuild(PipelineData pipelineData)
Build the layout.-
Methods inherited from class org.apache.turbine.modules.layouts.VelocityOnlyLayout
populateContext
-
Methods inherited from class org.apache.turbine.modules.layouts.VelocityLayout
render
-
-
-
-
Constructor Detail
-
VelocityXslLayout
public VelocityXslLayout()
-
-
Method Detail
-
doBuild
public void doBuild(PipelineData pipelineData) throws Exception
Build the layout. Also sets the ContentType and Locale headers of the HttpServletResponse object.- Specified by:
doBuild
in interfaceLayout
- Overrides:
doBuild
in classVelocityLayout
- Parameters:
pipelineData
- Turbine information.- Throws:
Exception
- a generic exception.
-
-