I have implemented a CollectionURIResolver as follows (based on a message posted to this forum):
public SequenceIterator resolve(String href, String base,
                                    XPathContext context) throws XPathException {
        Document[] documents = ...;  // implementation specific
        StaticQueryContext queryContext =
                new StaticQueryContext(context.getConfiguration());
        List sequenceItems = new ArrayList(documents.length);
        for (int i = 0; i < documents.length; i++) {
            Source source = new DOMSource(documents[i]);
            DocumentInfo documentInfo =
        return new ListIterator(sequenceItems);
It succeeds in returning the appropriate documents but it fails to return anything when passed to document-uri().
My question is - should this work?  I would think I should be able to retrieve the document uri of a document returned from a collection.  Am I missing something? Is this a bug?

Yahoo! Groups gets better. Check out the new email design. Plus there’s much more to come.