<?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>26422</bug_id>
          
          <creation_ts>2014-07-23 22:08:06 +0000</creation_ts>
          <short_desc>[XSLT30] (editorial) error XTSE0630 only applies to packages</short_desc>
          <delta_ts>2014-08-02 14:07: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>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>minor</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>109235</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-07-23 22:08:06 +0000</bug_when>
    <thetext>(Encountered this while trying to untangle the rules on static variables and parameters)

The current wording of this error is:

&quot;[ERR XTSE0630] It is a static error if a package contains more than one non-hidden binding of a global variable with the same name and same import precedence, unless it also contains another binding with the same name and higher import precedence.&quot;

I think it is the effect of the resolution to bug 24763 that it now refers to packages and not stylesheets. However, package itself is defined in terms of xsl:package, so it seems, or at least I read it, as if an xsl:stylesheet without an xsl:package parent does not apply.

Perhaps we should update the definition of &quot;package&quot;, or we should change the text to &quot;if a package or stylesheet...&quot;.

Note also, for instance, that the sentence prior to this error talks about a stylesheet, not a package, while I think it applies to both package and stylesheets, there may be more such sentences:

&quot;If a stylesheet contains more than one binding for a global variable of a particular name, then the binding with the highest import precedence is used.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109668</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-07-31 15:24:11 +0000</bug_when>
    <thetext>Resolved to update the definition of &quot;package&quot; to make it clear that the term includes an implicit package constructed when there is no explicit xsl:package element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109789</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-08-02 14:07:54 +0000</bug_when>
    <thetext>Changes have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>