API

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:

See Also:
XDynamicContext.setResultResolver(XResultResolver), XDynamicContext.setBaseOutputURI(String), XSequenceCursorResult

Method Summary
 Result getResult(String href, String base)
          Get the result document for the given href and base.
 

Method Detail

getResult

Result getResult(String href,
                 String base)

Get the result document for the given href and base. The href is the value of the href attribute on an XSLT xsl:result-document instruction. The base is the base output URI which can be set using the XDynamicContext.setBaseOutputURI method.

Supported Result types are:

Parameters:
href - The href which may be relative or absolute.
base - The base output URI.
Returns:
The result document. If null is returned the default result document resolution will be used.
See Also:
XDynamicContext.setBaseOutputURI(String), XSequenceCursorResult

IBM Copyright 2004-2008