A URIResolver, an interface defined in the javax.xml.transform package, is
used to process a URI and create a Source object out of it. All Java
developers working with XSLT have to decide which URIResolver they're going
to use to resolve the URI.
In small examples and code snippets this is very simple. However, when
working with large systems that are styling dynamic content, the decision on
which URIResolver to use can be a very important one that will help create a
more flexible and scalable application. This article will show how a
URIResolver is utilized to resolve a URI and how to create a URIResolver that
will allow these references to be resolved differently within the same
stylesheet.
When we develop with Java and XSLT, a URIResolver is used to perform this
function on the XSLT elements xsl:import and xsl:include as well as the XSL
function document(). Com... (more)