public interface XCollectionResolver
fn:collection
to a sequence of nodes.
If no collection resolver is registered with the XDynamicContext
then calls to fn:collection
will result in a recoverable error
and the empty sequence is used for the collection.Modifier and Type | Method and Description |
---|---|
XSequenceCursor |
getCollection(java.lang.String uri,
java.lang.String base)
Get the collection for the given URI and base.
|
XSequenceCursor getCollection(java.lang.String uri, java.lang.String base)
XItemFactory
can be used to create
an XSequenceCursor
from other types such as DOM NodeList
or an array of XItemView
. Note that the resulting
sequence must be a sequence of nodes. If the URI cannot be resolved
then the implementation may throw an uncaught exception. Empty sequences are
represented by null
so a return value of null
will be treated as an empty sequence.uri
- The URI provided on the fn:collection
call.base
- The base URI from the static context.XSequenceCursor
XItemFactory
,
XFactory.getItemFactory()