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

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

            Bug ID: 25173
           Summary: Test whether a streaming document is available through
                    fn:streaming-document-available()
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

During the telcon of 13 March 2014, during the discussion about xsl:try and
streaming, one suggestion that was made in addition to solving the xsl:try
buffering issue, was to be able to query whether a streaming document is
available or not.

If we decide to introduce such a function, it can never be a stable function,
because streaming documents are not stable upon multiple invocations. However,
we can define such a function such that it must attempt to read up to the start
of the root note and buffer this for a next invocation of the same URI.

Example:

<xsl:stream href="{
    if(streaming-document-available($x))
    then $x
    else $y}">
    ....
</xsl:stream>

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

Received on Thursday, 27 March 2014 13:11:52 UTC