<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26765</bug_id>
          
          <creation_ts>2014-09-09 23:08:05 +0000</creation_ts>
          <short_desc>[XSLT30] xsl:merge implementation issues, error conditions and non-streaming behavior</short_desc>
          <delta_ts>2014-09-09 23:12:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>26766</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111303</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-09-09 23:08:05 +0000</bug_when>
    <thetext>The first two following questions were originally reported to me by my programmer, Eugene Fotin.

While implementing the new xsl:merge syntax, we stumbled upon the following questions, to which I believe the specification has no clear answer:

&gt; what error should be raised if both @for-each-stream and @for-each-item are present? 

I think that, in line with similar constructs that have mutual exclusive attributes, we should introduce a specific static error condition for this.

&gt; what to do when @for-each-stream is present and streamable=&quot;no&quot; or is absent?

From the current text, the semantics of for-each-stream are described in terms of streamability. I think that in the case of the effective value of streamable=&quot;no&quot;, the behavior should be similar to the fn:collection function (except that its arguments do not return collections, the behavior is more like fn:document), i.e., whether or not it is stable is implementation dependent. If we mean that, I think we should say so explicitly.

&gt; the type of @for-each-stream is xs:string*, however the spec demands it to return uris, in fact, this is a MUST. Making it just xs:string* seems too liberal.

Why not change the argument to be xs:anyURI*? Then a type error would be the logical error if an argument is not a URI.

&gt; the behavior of dereferencing the uris is described as the same as fn:doc. Does this preclude raising the same errors if dererencing fails? (this remark also applies to xsl:stream, which defines no errors of its own).

We are more explicit about error conditions with fn:streaem-available, stipulating the errors of fn:doc-available that it inherits. I think it is worth mentioning this for xsl:stream and xsl:merge/@for-each-stream as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111305</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-09-09 23:11:58 +0000</bug_when>
    <thetext>Sorry for the double post, closing this as duplicate, it has terrible layout done by the BugZilla renderer, and is therefor almost unreadable.

*** This bug has been marked as a duplicate of bug 26766 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>