com.ibm.xml.xapi
Interface XResultResolver
- public interface XResultResolver
Implement this class to override the default resolution
behaviour for the URI reference in XSLT xsl:result-document
instructions.
Resolution depends on the URI reference from the xsl:result-document
instruction and the base output URI. The base output URI can be set in
the XDynamicContext
using the setBaseOutputURI
method. If it is not set then the base URI of the main result document
(as passed in to one of the execute
methods on the
executable object) is used. If this is not available then the current working
directory is used.
The default resolution behaviour is to use the base output URI to resolve result documents if the URI reference is relative. Absolute URIs are used unchanged.
Supported Result
types are:
- StreamResult
- SAXResult
- DOMResult
- StAXResult
- XSequenceCursorResult
XDynamicContext.setResultResolver(XResultResolver)
,
XDynamicContext.setBaseOutputURI(String)
,
XSequenceCursorResult
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getResult(java.lang.String href,java.lang.String base)
Get the result document for the given
href and base .
|
Method Detail
getResult
- javax.xml.transform.Result getResult( java.lang.String href,
- java.lang.String base)
href
- The href
which may be relative or absolute. base
- The base output URI. null
is returned
the default result document resolution will be used.
Get the result document for the given
href
andbase
. Thehref
is the value of thehref
attribute on an XSLTxsl:result-document
instruction. Thebase
is the base output URI which can be set using theXDynamicContext.setBaseOutputURI
method.Supported
Result
types are: