org.apache.turbine.services.xslt
Interface XSLTService
- All Superinterfaces:
- Initable, Service
- All Known Implementing Classes:
- TurbineXSLTService
- public interface XSLTService
- extends Service
The Turbine XSLT Service is used to transform xml with a xsl stylesheet.
The service makes use of the Xalan xslt engine available from apache.
- Author:
- Leon Messerschmidt
Method Summary |
java.lang.String |
transform(java.lang.String xslName,
org.w3c.dom.Node in)
Uses an xsl file to transform xml input from a DOM note and returns a
string containing the transformed output. |
void |
transform(java.lang.String xslName,
org.w3c.dom.Node in,
java.io.Writer out)
Uses an xsl file to transform xml input from a DOM note and writes the
output to a writer. |
java.lang.String |
transform(java.lang.String xslName,
java.io.Reader in)
Uses an xsl file to transform xml input from a reader and returns a
string containing the transformed output. |
void |
transform(java.lang.String xslName,
java.io.Reader in,
java.io.Writer out)
Uses an xsl file to transform xml input from a reader and writes the
output to a writer. |
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
transform
public void transform(java.lang.String xslName,
java.io.Reader in,
java.io.Writer out)
throws java.lang.Exception
- Uses an xsl file to transform xml input from a reader and writes the
output to a writer.
- Parameters:
xslName
- The name of the file that contains the xsl stylesheet.in
- The reader that passes the xml to be transformedout
- The writer for the transformed output
transform
public java.lang.String transform(java.lang.String xslName,
java.io.Reader in)
throws java.lang.Exception
- Uses an xsl file to transform xml input from a reader and returns a
string containing the transformed output.
- Parameters:
xslName
- The name of the file that contains the xsl stylesheet.in
- The reader that passes the xml to be transformed
transform
public void transform(java.lang.String xslName,
org.w3c.dom.Node in,
java.io.Writer out)
throws java.lang.Exception
- Uses an xsl file to transform xml input from a DOM note and writes the
output to a writer.
- Parameters:
xslName
- The name of the file that contains the xsl stylesheet.in
- The DOM Node to be transformedout
- The writer for the transformed output
transform
public java.lang.String transform(java.lang.String xslName,
org.w3c.dom.Node in)
throws java.lang.Exception
- Uses an xsl file to transform xml input from a DOM note and returns a
string containing the transformed output.
- Parameters:
xslName
- The name of the file that contains the xsl stylesheet.out
- The writer for the transformed output
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.