Use resolvers
Use this information to help you to use resolvers.
Tasks
- 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
Use this information to help you to use source and result resolvers.- Register a collection resolver
We can register implementations of the XCollectionResolver interface with the XDynamicContext.- Register 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 J2EE context, we 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.
Use source and result resolvers Registering a collection resolver Registering a schema resolver Use an unparsed text resolver Use a module resolver