<?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>28418</bug_id>
          
          <creation_ts>2015-04-07 04:15:41 +0000</creation_ts>
          <short_desc>[XT30] error-0047a XTDE0057 has been removed from spec (possibly erroneously)</short_desc>
          <delta_ts>2015-10-29 09:50:36 +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>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="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>119274</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-07 04:15:41 +0000</bug_when>
    <thetext>This error was still there in the 2012 WD, but disappeared in the 2013 WD. In the 2012 WD there were two identical errors with different descriptions:

   [ERR XTDE0047] It is a non-recoverable dynamic error if the invocation of 
   the stylesheet specifies both an initial mode and an initial template.

   [ERR XTDE0047] It is a non-recoverable dynamic error if the invocation of 
   the stylesheet specifies both an initial mode and an initial template.

I could not find anything in the mail archive or in Bugzilla, so I am not sure whether this was done by accident or purposely. The only mail with a reasonable comment about these dynamic errors is in https://lists.w3.org/Archives/Member/w3c-xsl-wg/2012Oct/0038.html

&gt; Most of the ones that aren&apos;t catchable are &quot;stylesheet invocation 
&gt; errors&quot; like not supplying a required parameter; in principle we could 
&gt; invent another category for these, but I don&apos;t think it&apos;s worth the 
&gt; hassle; just treat them as dynamic errors which can&apos;t be caught.

It could be argued that the error is redundant, because it is up to the API to decide what happens here. However, the above comment implies that there was no intend to remove the error.

From the testing standpoint, I think that, as long as this error does not exist, the test should not exist. I will tentatively mark it XSLT20 only, but if the error comes back, we should change the test back as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119275</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-07 04:16:17 +0000</bug_when>
    <thetext>(this bug was originally reported by Vitaliy Yudenkov)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119298</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-07 07:35:08 +0000</bug_when>
    <thetext>&gt; I will tentatively mark it XSLT20 only, but if the error comes back, we 
&gt; should change the test back as well.

Currently fixed as described. Leaving the bug open though, because I think it warrants some discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119545</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-15 18:12:10 +0000</bug_when>
    <thetext>Moving the bug from XT30 to XSLT 30, so it can be discussed by the WG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119800</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-23 08:09:02 +0000</bug_when>
    <thetext>I think the error condition disappeared as part of the reorganization of the &quot;stylesheet invocation&quot; section.

I think it was right to remove it. It&apos;s an API error. The API might be designed so that there is no way of triggering this error, e.g

public void setInitialModeOrTemplate(QName name, boolean isMode)

or in the case of invocation from an XML-based test suite, the schema for the test suite metadata might prevent both an initial mode and an initial template being present (in which case the error you get is not XTDE0047, but a validation error on validating the test suite).

I think the test case should be dropped. Chances are, any product that passes this test probably catches this error in the test driver, not in the product under test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119828</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-23 17:03:14 +0000</bug_when>
    <thetext>Agreed to retain the status quo in the spec and drop the test case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>