<?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>30173</bug_id>
          
          <creation_ts>2017-08-30 09:50:52 +0000</creation_ts>
          <short_desc>[xslt30] xsl:global-context-item - missing error code</short_desc>
          <delta_ts>2017-10-29 23:22:54 +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>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="Michael Kay">mike</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>128867</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-08-30 09:50:52 +0000</bug_when>
    <thetext>There appears to be no error code prescribed for the case where xsl:global-context-item specifies use=&quot;required&quot;, and no global context item is supplied.

We also seem to be missing a test case for this condition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128868</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-08-30 09:55:50 +0000</bug_when>
    <thetext>I propose to use XTDE3086</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128869</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-08-30 10:09:20 +0000</bug_when>
    <thetext>Test case glob-cxt-item-012 added</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128900</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2017-09-21 20:45:56 +0000</bug_when>
    <thetext>Ha, you are right, and we raise XTTE0590. Perhaps it makes sense here?

   &quot;A type error is signaled if there is a package with an xsl:global-context-
   item declaration specifying a required type that does not match the supplied 
   global context item. The error code is the same as for xsl:param: [see ERR 
   XTTE0590].&quot;

We could say &quot;...specifying a required type, or failing to provide a required item, that does not match...&quot;

Sounds to me this should go into an erratum.

PS: any reason for that particular number? It seems very specific and there is no number in its vicinity (not that it matters much though).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128927</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-10-13 20:17:50 +0000</bug_when>
    <thetext>I chose the number because 3087 is used nearby.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128939</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-10-19 16:44:03 +0000</bug_when>
    <thetext>Erratum E6 has been drafted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128951</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-10-29 23:22:54 +0000</bug_when>
    <thetext>The erratum was approved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>