Package org.eclipse.wst.xsl.invoker


org.eclipse.wst.xsl.invoker
Class JAXPSAXProcessorInvoker



public class JAXPSAXProcessorInvoker
extends java.lang.Object
An implementation of IProcessorInvoker that uses JAXP as the underlying transformation mechanism.


Constructor Summary

JAXPSAXProcessorInvoker()

Method Summary

public voidaddStylesheet(java.net.URL stylesheet , java.util.Map parameters , java.util.Properties outputProperties , javax.xml.transform.URIResolver resolver)
    
protected javax.xml.transform.TransformeraddStylesheet(javax.xml.transform.Source source , javax.xml.transform.URIResolver resolver , java.util.Map parameters , java.util.Properties outputProperties)
    
protected org.xml.sax.XMLReadercreateReader()
    
protected javax.xml.transform.TransformerFactorycreateTransformerFactory()
    
public voidsetFeatures(java.util.Map features)
    
public voidtransform(java.net.URL sourceURL , javax.xml.transform.Result res)
    
public voidtransform(org.xml.sax.InputSource inputsource , javax.xml.transform.Result res)
     Transform using an InputSource rather than a URL

Constructor Detail

JAXPSAXProcessorInvoker

public JAXPSAXProcessorInvoker()

Create a new instance of this.


Methods Detail

addStylesheet

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

Parameters

stylesheet

parameters

outputProperties

resolver

Throws:

javax.xml.transform.TransformerConfigurationException


addStylesheet

protected javax.xml.transform.Transformer addStylesheet(javax.xml.transform.Source source , javax.xml.transform.URIResolver resolver , java.util.Map parameters , java.util.Properties outputProperties)

Parameters

source

resolver

parameters

outputProperties

Returns

javax.xml.transform.Transformer

Throws:

javax.xml.transform.TransformerConfigurationException


createReader

protected org.xml.sax.XMLReader createReader()

Returns

org.xml.sax.XMLReader

Throws:

org.xml.sax.SAXException

javax.xml.parsers.ParserConfigurationException


createTransformerFactory

protected javax.xml.transform.TransformerFactory createTransformerFactory()

Returns

javax.xml.transform.TransformerFactory


setFeatures

public void setFeatures(java.util.Map features)

Parameters

features

Throws:

javax.xml.transform.TransformerFactoryConfigurationError


transform

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

Parameters

sourceURL

res

Throws:

org.eclipse.wst.xsl.invoker.TransformationException


transform

public void transform(org.xml.sax.InputSource inputsource , javax.xml.transform.Result res)

Transform using an InputSource rather than a URL

Parameters

inputsource - the InputSource to use

res - the Result

Throws:

org.eclipse.wst.xsl.invoker.TransformationException - if an error occurred during transformation