Package gov.nist.secauto.decima.xml.util
Class XSLTransformer
- java.lang.Object
-
- gov.nist.secauto.decima.xml.util.XSLTransformer
-
- All Implemented Interfaces:
URIResolver
- Direct Known Subclasses:
ExtendedXSLTransformer
public class XSLTransformer extends Object implements URIResolver
Provides support for XSL transformations in Decima.For XSL transformations in Decima, the
ExtendedXSLTransformershould be used. This guarantees that any XSL extensions are properly loaded through theTransformerExtensionServiceextension mechanism in the Decima framework.
-
-
Constructor Summary
Constructors Constructor Description XSLTransformer()XSLTransformer(net.sf.saxon.jaxp.SaxonTransformerFactory transformerFactory)Constructs an XSL transformer using the provided transformer factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformerHandleraddChain(Templates template, TransformerHandler nextHandler)Creates a transformer handler in the context of a chain of transformer handlers.net.sf.saxon.jaxp.SaxonTransformerFactorygetTransformerFactory()Sourceresolve(String href, String base)
-
-
-
Method Detail
-
getTransformerFactory
public net.sf.saxon.jaxp.SaxonTransformerFactory getTransformerFactory()
-
addChain
public TransformerHandler addChain(Templates template, TransformerHandler nextHandler) throws TransformerConfigurationException
Creates a transformer handler in the context of a chain of transformer handlers.- Parameters:
template- the template to use for this transformation stepnextHandler- the handler to perform the next transform- Returns:
- the newly created transform handler
- Throws:
TransformerConfigurationException- if an error occurs while configuring the transformation
-
resolve
public Source resolve(String href, String base) throws TransformerException
- Specified by:
resolvein interfaceURIResolver- Throws:
TransformerException
-
-