<?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>28586</bug_id>
          
          <creation_ts>2015-04-30 15:18:38 +0000</creation_ts>
          <short_desc>[xslt30ts] static-013 type errors</short_desc>
          <delta_ts>2015-05-06 21:08:10 +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>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="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>120016</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-30 15:18:38 +0000</bug_when>
    <thetext>The stylesheet static-013 used for tests static-013, static-013a, and static-013b, contains the declaration

   &lt;!-- Static param without select attr, but with an as-clause, implicitly mandatory--&gt;
   &lt;xsl:param name=&quot;static-param&quot; static=&quot;yes&quot; as=&quot;xs:integer&quot; select=&quot;xs:date(&apos;2014-03-03&apos;)&quot; /&gt;

In fact this does not come within the definition of &quot;implicitly mandatory&quot;, which arises only where the parameter has an implicit default. It is the case covered by the Note:

The effect of these rules is that specifying &lt;xsl:param name=&quot;p&quot; as=&quot;xs:date&quot; select=&quot;2&quot;/&gt; is an error, but if the default value of the parameter is never used, then the processor has discretion whether or not to report the error.

So all three tests should permit an error outcome, and the comments should be changed because the reference to being &quot;implicitly mandatory&quot; is incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120034</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-01 18:17:09 +0000</bug_when>
    <thetext>I agree, I apparently misinterpreted the spec text here. 

- implicitly mandatory: only when there is no select attribute
- explicitly mandatory: with required attribute set to yes
- impl. defined: with non-castable select attribute, may raise error or not

I will update the test to allow an error outcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120035</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-01 18:29:49 +0000</bug_when>
    <thetext>I agree, I apparently misinterpreted the spec text here. 

- implicitly mandatory: only when there is no select attribute
- explicitly mandatory: with required attribute set to yes
- impl. defined: with non-castable select attribute, may raise error or not if externally supplied value is compatible, but the direct supplied value is not

I have updated the test to allow an error outcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120036</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-01 18:30:34 +0000</bug_when>
    <thetext>(sorry for the double submit, I got a &quot;midair collision&quot; error from BugZilla)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>