API

com.ibm.xml.xapi
Interface XUnparsedTextResolver


public interface XUnparsedTextResolver

Implement this class to override the default unparsed text resolution behaviour. Register with the dynamic context to resolve resources loaded using the XSLT unparsed-text function.

The default unparsed text resolution behaviour for resources loaded using the XSLT unparsed-text function is to resolve relative URIs based on the base URI from the static context. If the base URI is not available, the current working directory is used. Absolute URIs are used unchanged.

See Also:
XDynamicContext.setUnparsedTextResolver(XUnparsedTextResolver)

Method Summary
 String getResource(String href, String encoding, String base)
          Get the resource as a String for the given URI, encoding, and base.
 

Method Detail

getResource

String getResource(String href,
                   String encoding,
                   String base)
Get the resource as a String for the given URI, encoding, and base.

Parameters:
href - The URI which may be relative or absolute.
encoding - The encoding of the resource. May be null if the encoding was not specified in the call to unparsed-text.
base - The base URI.
Returns:
The resource as a String or null

IBM Copyright 2004-2008