Package org.eclipse.wst.xsl.invoker
public class IProcessorInvoker extendsInterface 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 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). |
public void | setFeatures(java.util.Map features)Set the processor-specific features to use. |
public void | transform(java.net.URL source
,
javax.xml.transform.Result res)Perform the actual transformation. |
Methods Detail |
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).
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
javax.xml.transform.TransformerConfigurationException - if stylesheet could not be added
public void setFeatures(java.util.Map features)
Set the processor-specific features to use.
features - a map of String v. String features
public void transform(java.net.URL source
,
javax.xml.transform.Result res)
Perform the actual transformation.
source - the URL of the XML source document
res - the transformation result
org.eclipse.wst.xsl.invoker.TransformationException - if the transformation failed