<?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>30144</bug_id>
          
          <creation_ts>2017-07-11 22:19:10 +0000</creation_ts>
          <short_desc>[xslt30ts] mode-1701a</short_desc>
          <delta_ts>2019-02-26 00:17:40 +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>Proposed 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>128714</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-07-11 22:19:10 +0000</bug_when>
    <thetext>This test expects XTDE0045. I don&apos;t think that&apos;s correct.

Under the rules in 2.3.3, mode &quot;a&quot; is an eligible mode because (rule #3) it is named in xsl:package/@default-mode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128913</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2017-10-09 19:54:53 +0000</bug_when>
    <thetext>We say, in that section:

   If no initial mode is supplied explicitly, then the initial mode is that named in the default-mode attribute of the (explicit or implicit) xsl:package element of the top-level package or in the absence of such an attribute, the unnamed mode. 

And then we say that something is eligible as an initial mode if:

   M is explicitly declared in an xsl:mode declaration within P, and has public or final visibility (either by virtue of its visibility attribute, or by virtue of an xsl:expose declaration). 

But we also say:

   M is named in the default-mode attribute of the (explicit or implicit) xsl:package element of P.

I think this test was written before we wrote up the new rules on &quot;eligible modes&quot;, which came after a long discussion where the previous draft required an initial mode to be public.

Not anymore, so I think you are correct. And I believe the discussion at the time allowed this because this would &quot;allow an access point into a stylesheet that is not publicly visible&quot;, so this forces the use of a certain initial mode and the user cannot select something else.

So yes, the test is wrong now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129565</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2019-02-26 00:17:40 +0000</bug_when>
    <thetext>While mode-1701a was long fixed, I noticed that mode-1705a had the same issue and incorrectly expected XPDE0045. Fixed that test (default-mode is always eligible as initial mode) and added a variant for the error scenario (mode-1705b) and another variant for scoping of default-mode (it must appear on the root XSLT element to make a mode eligible).

Marking this bug as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>