Package org.eclipse.wst.xsl.invoker


org.eclipse.wst.xsl.invoker
Class IProcessorInvoker



public class IProcessorInvoker
extends 
Interface used by the launched process to define the XSL transformation pipeline. The setFeatures and addStylesheet methods should be called before calling transform to do the actual transformation.

If addStylesheet is not called before transform, then it is assumed that the source document contains and embedded stylesheet instruction.


Method Summary

public voidaddStylesheet(java.net.URL stylesheet , java.util.Map parameters , java.util.Properties outputProperties , javax.xml.transform.URIResolver resolver)
     Add a stylesheet to the pipeline (order is important).
public voidsetFeatures(java.util.Map features)
     Set the processor-specific features to use.
public voidtransform(java.net.URL source , javax.xml.transform.Result res)
     Perform the actual transformation.

Methods Detail

addStylesheet

public void addStylesheet(java.net.URL stylesheet , java.util.Map parameters , java.util.Properties outputProperties , javax.xml.transform.URIResolver resolver)

Add a stylesheet to the pipeline (order is important).

Parameters

stylesheet - the URL of the stylesheet to add

parameters - the map of parameters for the stylesheet

outputProperties - the output properties

resolver - the URIResolver to use

Throws:

javax.xml.transform.TransformerConfigurationException - if stylesheet could not be added


setFeatures

public void setFeatures(java.util.Map features)

Set the processor-specific features to use.

Parameters

features - a map of String v. String features


transform

public void transform(java.net.URL source , javax.xml.transform.Result res)

Perform the actual transformation.

Parameters

source - the URL of the XML source document

res - the transformation result

Throws:

org.eclipse.wst.xsl.invoker.TransformationException - if the transformation failed