[Bug 25173] Test whether a streaming document is available through fn:streaming-document-available()

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25173

--- Comment #3 from Michael Kay <mike@saxonica.com> ---
OK in principle, but I think my preference would be

(a) name the function stream-available()

(b) define it along the following lines: the function returns true if and only
if all the following conditions are satisfied:

* The URI is valid, 
* a resource with this URI can be retrieved
* the initial bytes of the resource can be read and decoded as text according
to the rules used by an XML processor
* the resulting sequence of characters starts with a string that matches the
grammar:

prolog (EmptyElemTag | STag )

as defined in the XML Recommendation

* no implementation-dependent errors, such as would cause the xsl:stream
instruction to fail, are detected during the process of opening and parsing the
initial content of the stream

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 16 May 2014 07:25:40 UTC