<?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>28526</bug_id>
          
          <creation_ts>2015-04-21 11:55:30 +0000</creation_ts>
          <short_desc>[XSLT30] (editorial) Unclear choice between XTSE0010 and XTSE0260</short_desc>
          <delta_ts>2015-10-29 09:50:34 +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>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>trivial</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>119722</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-21 11:55:30 +0000</bug_when>
    <thetext>XTSE0260 should be raised if an xslt element is required to be empty, and XTSE0010 if any of its required attributes are wrong, or its content is incorrect.

In the case of:

&lt;xsl:param name=&quot;x&quot; required=&quot;yes&quot;&gt;
    Fail with XTSE0260 | XTSE0010
&lt;/xsl:param&gt;

the content MUST BE (is required to be) empty, so we use XTSE0260. But one could also argue that the content is incorrect to its semantics (Saxon raises XTSE0010, Exselt XTSE0260).

My guess would be: XTSE0260 is the correct error here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119724</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-21 13:16:23 +0000</bug_when>
    <thetext>I think with static errors it&apos;s often hard to be precise about error codes. For example if an attribute name is misspelt then you can either report that a required attribute is missing or that a disallowed attribute is present. Similarly here: you can argue that if required=&quot;yes&quot; the content must be empty, or you can argue that if the content is non-empty, then you can&apos;t specify required=&quot;yes&quot;. I don&apos;t think we should spend time on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119728</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-21 16:00:51 +0000</bug_when>
    <thetext>Yes, in retrospect I agree (my programmer and me came to the same conclusion in the end).

I&apos;ll close with WORKSFORME.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>