<?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>29256</bug_id>
          
          <creation_ts>2015-11-02 16:53:47 +0000</creation_ts>
          <short_desc>accept-041c - error XTSE3080</short_desc>
          <delta_ts>2016-02-20 14:52: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>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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.braaksma</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>124036</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-11-02 16:53:47 +0000</bug_when>
    <thetext>Should this test raise XTSE3080 (and -043c, -045c, -047c likewise)?

Section 3.5.3.3 says (just below the definition of error 3060):

A package is executable if and only if it contains no component whose visibility is abstract. A package that is not executable is not a stylesheet, and therefore cannot be nominated as the stylesheet to be used when initiating a transformation.

This statement has no associated error code.

The definition of XTSE3080 is in 3.5.3.5, and reads:

[ERR XTSE3080] It is a static error if a top-level package (as distinct from a library package) contains symbolic references referring to components whose visibility is abstract.

Note that XTSE3080 suggests it&apos;s only an error if there is a reference to the abstract component, whereas the statement in 3.5.3.3 suggests it&apos;s an error whether or not the component is referenced.

Leaving this as a test suite bug for the moment, but we may need some clarification in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124047</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-11-03 00:33:07 +0000</bug_when>
    <thetext>I remember looking this up recently and thought to recollect that we decided (in Prague?) that abstract components can exists *as long as they are not invoked*.

Then I found the section on xsl:accept and &quot;absent&quot;, which seems to be a feature to explicitly say that you do not expect to give an implementation for such components, if they are referenced, it is then a dynamic error 

(this is a nuisance to do if you have abstracts of all kinds, which requires at least five xsl:accept just to be able to run whenever you reference such package)

I&apos;m not sure for the rationale behind this. It seems to make more sense to allow abstract components to exist, just with a default implementation of xs:error / fn:error. Unless we want to give library builders the tools to write &quot;interface-style&quot; code, where it is required to implement the whole interface (abstract components) (where &quot;absent&quot; is a kind of implementation), regardless of whether the code is referenced/used etc.

With large packages where many components are defined as abstract, this can become quite a pain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124268</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-11-20 18:16:26 +0000</bug_when>
    <thetext>I&apos;m converting this to a spec bug as I think it needs technical discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124592</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-01-14 17:49:16 +0000</bug_when>
    <thetext>We decided it should be an error to have abstract components whether or not they are referenced.

The wider topic of the usability of xsl:accept will be raised as a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125163</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-02-19 14:37:23 +0000</bug_when>
    <thetext>The necessary clarification has been added to the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125178</commentid>
    <comment_count>5</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-02-20 14:52:35 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #3)
&gt; The wider topic of the usability of xsl:accept will be raised as a separate
&gt; issue.
For reference, that is Bug 29478.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>