WAS v8.5 > Develop applications > XML applications > Use the XML API to perform operationsUse resolvers
We can use this information to help to use resolvers.
- Use source and result resolvers.
- Register a collection resolver.
- Register a schema resolver.
- Use an unparsed text resolver.
- Use a module resolver.
Subtopics
- Use source and result resolvers
We can use this information to help to use source and result resolvers.- Registering a collection resolver
We can register implementations of the XCollectionResolver interface with the XDynamicContext.- Registering a schema resolver
The XSchemaResolver interface can be implemented and the implementation registered with the XFactory to override the default schema resolution behavior. This includes resolution of imports for schemas registered with XFactory using the registerSchema method and resolving schemas imported in XSLT stylesheets using the xsl:import-schema declaration.- Use an unparsed text resolver
The XUnparsedTextResolver interface can be implemented and the implementation registered with the XDynamicContext to override the default resolution behavior for resources loaded through the XSLT unparsed-text function.- Use resolvers in a J2EE context
When loading artifacts in a Java 2 Platform, Enterprise Edition (J2EE) context, you should consider the special implications that apply when loading resources from local deployment artifacts.- Use a module resolver
The XModuleResolver interface can be implemented and the implementation registered with the XStaticContext to override the default XQuery module resolution behavior. Modules are resolved whenever an XQuery module import is encountered.
Related
Use source and result resolvers
Registering a collection resolver
Registering a schema resolver
Use an unparsed text resolver
Use a module resolver