public interface SourceResolver
The task of the SourceResolver is to take any Source as input, and to return
an ActiveSource that knows how to deliver itself to a Receiver.
This allows new kinds of Source to be introduced, provided they implement the
ActiveSource interface.
| Modifier and Type | Method and Description |
|---|---|
ActiveSource |
resolveSource(javax.xml.transform.Source source,
Configuration config)
Resolve a Source.
|
ActiveSource resolveSource(javax.xml.transform.Source source, Configuration config) throws XPathException
source - A source object, typically the source supplied as the first
argument to Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result)
or similar methods.config - The Configuration. This provides the SourceResolver with access to
configuration information; it also allows the SourceResolver to invoke the
resolveSource() method on the Configuration object as a fallback implementation.ActiveSource
is acceptable.XPathException - if the Source object is recognized but cannot be processedCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.