public class XSLURIResolver extends Object implements URIResolver
URIResolver to enable resolving imported/included xsl's during XML transformation
Primarily intended to repeal any possibilities of XXE during transformation when the parent xsl contains
imported or included xsl's.
An option is provided through constructor to pass a reusable XMLReader and a directory location
from classpath to resolve an inclusion and create a SourceXMLUtils| Constructor and Description |
|---|
XSLURIResolver(XMLReader xmlReader,
String xslDirPath) |
public Source resolve(String href, String base) throws TransformerException
resolve in interface URIResolverTransformerException