<?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>29773</bug_id>
          
          <creation_ts>2016-08-17 10:32:27 +0000</creation_ts>
          <short_desc>[xsl30ts] mode-1702</short_desc>
          <delta_ts>2016-11-21 16:12:27 +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 Test Suite</component>
          <version>Candidate 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="Abel Braaksma">abel.online</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>127144</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-08-17 10:32:27 +0000</bug_when>
    <thetext>Test mode-1702 has the declaration

&lt;xsl:mode visibility=&quot;public&quot;/&gt;

This violates the rule in 6.6.1 (last row of table):

If the mode is unnamed, that is, if the name attribute is absent, then the visibility attribute if present must have the value private.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127266</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-09-01 15:56:46 +0000</bug_when>
    <thetext>While fixing this, I am wondering: the xsl:package has @default-mode=&quot;a&quot;, but the invocation does not specify a default mode. Does that suggest that the invocation default is &quot;a&quot; if it is not specified? Or is that an API issue, and is the consensus that if the test does not specify a mode, that it should default to #unnamed? (or: alternatively, default to the @default-mode attribute, which is what we currently do, failing this test).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127272</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-09-02 15:08:29 +0000</bug_when>
    <thetext>(In reply to Abel Braaksma from comment #1)
&gt; While fixing this, I am wondering: the xsl:package has @default-mode=&quot;a&quot;,
&gt; but the invocation does not specify a default mode. Does that suggest that
&gt; the invocation default is &quot;a&quot; if it is not specified? Or is that an API
&gt; issue, and is the consensus that if the test does not specify a mode, that
&gt; it should default to #unnamed? (or: alternatively, default to the
&gt; @default-mode attribute, which is what we currently do, failing this test).
Found it in the spec, we say:

&quot;The design of the API for invoking a transformation should provide some means for users to designate the unnamed mode as the initial mode in cases where it is not the default mode.&quot;

Which makes this an API matter. I&apos;ll check and/or update what we say about this in the test documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128071</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-05 13:49:35 +0000</bug_when>
    <thetext>Given the current discussion on mode invocations I think it is wise to explicitly state in the test, in cases of ambiguity (as is the case here) that the intent is to invoke through the default unnamed mode.

Fixed it accordingly. The original bug was already fixed provisionally (but without log entry it seems).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128247</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-11-21 14:40:55 +0000</bug_when>
    <thetext>If the intent is to invoke the unnamed mode, then the expected results are wrong. The stylesheet contains one template rule, with no mode attribute. That template rule is therefore in the default mode, which is &quot;a&quot;. The expected results assume that this template rule is invoked, but the template rule is not applicable to the unnamed mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128248</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-11-21 16:12:27 +0000</bug_when>
    <thetext>I have changed the test so that the template rule specifies mode=&quot;#unnamed&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>