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

      Methods 
      Modifier and Type Method and Description
      java.lang.String getResource(java.lang.String href, java.lang.String encoding, java.lang.String base)
      Get the resource as a String for the given URI, encoding, and base.
    • Method Detail

      • getResource

        java.lang.String getResource(java.lang.String href,
                                   java.lang.String encoding,
                                   java.lang.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 WebSphere Application Server XML API JavadocTM
Release 9.0