[Bug 3173] [F+O, DM] A difficulty with document-uri()

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3173





------- Comment #8 from mike@saxonica.com  2006-06-23 11:12 -------
During discussion, another use case in support of the proposed change was
cited, which I capture here for the record.

Suppose you call collection('http://some.collection.uri/docs?password=abc123')
and this returns a collection of documents one of which has a document URI
property of "http://some.collection.uri/doc864". The doc-available() function
might have already been called with this argument and might have returned
false, perhaps because the document is inaccessible without a password. What is
the implementation supposed to do:

(a) treat this response from the collection function as an error (if so, what
error?)

(b) treat this document returned by the collection function as if it had no
document-uri

(c) allow this document to have a document-uri, but one which cannot
successfully be passed to the doc() function

There was a feeling in the meeting that (c) was the most appropriate. This is
consistent with my proposal in comment #5.

Michael Kay

Received on Friday, 23 June 2006 11:12:43 UTC