wt.util.xml.xslt
Class JAXPXMLSourceFactory
java.lang.Object
wt.util.xml.xslt.XMLSourceFactory
wt.util.xml.xslt.JAXPXMLSourceFactory
- class JAXPXMLSourceFactory
- extends XMLSourceFactory
Methods inherited from class wt.util.xml.xslt.XMLSourceFactory |
convertSAXtoSAX2, getFactory, getFactory, getParserForSAXSource, getXMLReaderForSAX2Source, newDOMSource, newDOMSource, newReaderSource, newReaderSource, newStreamSource, newStreamSource, newURLSource, newURLSource, newURLSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factories
private JAXPFactories factories
JAXPXMLSourceFactory
JAXPXMLSourceFactory()
JAXPXMLSourceFactory
JAXPXMLSourceFactory(SAXParserFactory saxParserFactory,
DocumentBuilderFactory documentBuilderFactory,
TransformerFactory transformerFactory)
newXSLTransform
public XSLTransform newXSLTransform(XMLSource xmlSource,
Stylesheet stylesheet,
Hashtable inputParameters)
throws SAXException,
IOException
- Description copied from class:
XMLSourceFactory
- Create an XSLTransform instance to apply the stylesheet to the XML
document identified by xmlSource. Parameters may be passed to the
XSLT stylesheet in the hashtable (the hashtable may be null if no
parameters are being passed). Stylesheets imported or included by
the provided Stylesheet are located relative to the base URI of the
XMLSource that produced the Stylesheet if they are not fully qualified.
Supported API: true
- Specified by:
newXSLTransform
in class XMLSourceFactory
- Parameters:
xmlSource
- stylesheet
- inputParameters
-
- Returns:
- XSLTransform
- Throws:
SAXException
IOException
- See Also:
Stylesheet
,
XMLSource
newXSLTransform
public XSLTransform newXSLTransform(XMLSource xmlSource,
Stylesheet stylesheet,
Hashtable inputParameters,
String baseURI)
throws SAXException,
IOException
- Description copied from class:
XMLSourceFactory
- Create an XSLTransform instance to apply the stylesheet to the XML
document identified by xmlSource. Parameters may be passed to the
XSLT stylesheet in the hashtable (the hashtable may be null if no
parameters are being passed). Stylesheets imported or included by
the provided Stylesheet are located relative to the specified base
URI if they are not fully qualified.
Supported API: true
- Specified by:
newXSLTransform
in class XMLSourceFactory
- Parameters:
xmlSource
- stylesheet
- inputParameters
- baseURI
-
- Returns:
- XSLTransform
- Throws:
IOException
SAXException
- See Also:
Stylesheet
,
XMLSource
newStylesheet
public Stylesheet newStylesheet(XMLSource xslSource)
throws SAXException,
IOException
- Description copied from class:
XMLSourceFactory
- Create a new Stylesheet instance for the XSL document identified by
the XMLSource.
Once instantiated, this Stylesheet can be repeatedly by XSLTTransforms.
Supported API: true
- Specified by:
newStylesheet
in class XMLSourceFactory
- Parameters:
xslSource
-
- Returns:
- Stylesheet
- Throws:
IOException
SAXException
- See Also:
XSLTransform
,
XMLSourceFactory.newXSLTransform(wt.util.xml.xslt.XMLSource, wt.util.xml.xslt.Stylesheet, java.util.Hashtable)
getJAXPSource
Source getJAXPSource(XMLSource xmlSource)
throws SAXException,
IOException
- Utility to produce JAXP Source objects from XMLSource objects
- Throws:
SAXException
IOException
getFactories
JAXPFactories getFactories()
- Accessor to JAXP factories holder