<?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>30297</bug_id>
          
          <creation_ts>2018-10-15 08:25:37 +0000</creation_ts>
          <short_desc>Compatibility of overridden functions</short_desc>
          <delta_ts>2019-02-20 00:33:35 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>abel.online</cc>
          
          <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>129349</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2018-10-15 08:25:37 +0000</bug_when>
    <thetext>In discussing compatibility of overriding functions, §3.5.3.3 says

If the overridden function specifies streamable=&quot;yes&quot; then the overriding function also specifies streamable=&quot;yes&quot;, and in addition, it has the same posture and sweep as the function that it overrides.

What it means to say is:

The explicit or implicit value of the streamability attribute in the overriding function must be the same as the explicit or implicit value of the streamability attribute in the overridden function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129358</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2018-10-24 13:41:01 +0000</bug_when>
    <thetext>I actually think this was deliberate, I remember (but cannot readily find the reference) that we discussed that a non-streamable stylesheet function can be overridden by a streamable stylesheet function, but not the other way around.

Hence the current rule is written specifically to refer only to the situation where streamable=&quot;yes&quot; is specified.

Your change would suggest that that is no longer the case and would make this change more than just editorial.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129359</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2018-10-24 13:47:02 +0000</bug_when>
    <thetext>OK, but my main point was that xsl:function does not have an @streamable attribute, it has an @streamability attribute. Also, a function per se does not have a posture and sweep.

Perhaps the correct text is:

If the overridden function has a streamability attribute with a value other than &quot;unspecified&quot;, then the overriding function must have a streamability attribute with the same value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129361</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2018-10-24 16:30:33 +0000</bug_when>
    <thetext>I didn&apos;t realize that, yes that makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129538</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2019-02-20 00:33:35 +0000</bug_when>
    <thetext>Covered by draft erratum E32, see https://htmlpreview.github.io/?https://github.com/w3c/qtspecs/blob/master/errata/xslt-30/html/xslt-30-errata.html#E32</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>