org.jwarp.service.display
Interface IXSLTService

All Superinterfaces:
IConfigurable, IDisplayService, IExceptionProvider, IService

public interface IXSLTService
extends IDisplayService

The XSLT Service is used to transform xml with a xsl stylesheet. The service makes use of the Xalan xslt engine available from apache.

Version:
1.0
Author:
Anatole Tresch

Field Summary
static java.lang.String SERVICE_TYPE
           
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 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.
 
Methods inherited from interface org.jwarp.service.display.IDisplayService
display, getMappings
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Method Detail

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 transformed
out - 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

©   O R C A   S y s t e m s