public class XsltTransformer extends Object implements ITransformer
XsltOutputTransformerContainer
,
XsltTransformerBehavior
Constructor and Description |
---|
XsltTransformer()
Construct.
|
XsltTransformer(String xslFile)
Instead of using the default mechanism to determine the associated XSL file, it is given by
the user.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
transform(Component component,
CharSequence output)
Apply a XSL transformation to the markup generated by a component.
|
public XsltTransformer()
public XsltTransformer(String xslFile)
xslFile
- XSL input file path relative to the component's package. If the path does not end
with .xsl, then it is considered as a basename and will be passed as-is
to
IResourceStreamLocator.locate(Class, String, String, String, java.util.Locale, String, boolean)
. All stylesheets must have the .xsl extension.public CharSequence transform(Component component, CharSequence output) throws Exception
transform
in interface ITransformer
component
- The associated Wicket componentoutput
- The markup generated by the child componentsException
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.