<?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>29666</bug_id>
          
          <creation_ts>2016-05-26 15:21:32 +0000</creation_ts>
          <short_desc>[XSLT30] Stylesheet level definition may need updating or clarification</short_desc>
          <delta_ts>2016-10-06 18:42:31 +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>Candidate Recommendation</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>126582</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-05-26 15:21:32 +0000</bug_when>
    <thetext>The current definition of &quot;stylesheet level&quot; is:

 [Definition: A stylesheet level is a collection of stylesheet modules connected using xsl:include declarations: specifically, two stylesheet modules A and B are part of the same stylesheet level if one of them includes the other by means of an xsl:include declaration, or if there is a third stylesheet module C that is in the same stylesheet level as both A and B.] 

This does not reflect what happens with used packages. I think these are on the same stylesheet level (if P uses Q and Q includes R then declarations in P, Q and R are all in the same stylesheet level, even though Q and R may have components that are invisible to P).

Furthermore, I think it would be clarifying if we say something like &quot;Note: if A imports through xsl:import B, then A is not on the same stylesheet level as B.&quot;.

I&apos;m not sure whether the definition itself should be updated, but it may help to clarify the relation between include/import/use-package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126583</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-05-26 15:31:16 +0000</bug_when>
    <thetext>We should probably clarify that a &quot;level&quot; is a subset of a package. There&apos;s a containment hierarchy: a module is part of a level and a level is part of a package. Two modules in different packages therefore can&apos;t be in the same level. That&apos;s implicit in the current definition but it could be made more explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126605</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-05-27 10:30:59 +0000</bug_when>
    <thetext>I have added the following note in the hope that this removes any possible confusion:

&lt;note diff=&quot;add&quot; at=&quot;T-bug29666&quot;&gt;&lt;p&gt;A stylesheet level thus groups the declarations in a package by import precedence: two declarations within a package are in the same stylesheet level if and only if they have the same import precedence.&lt;/p&gt;&lt;/note&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126655</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-06-02 19:47:13 +0000</bug_when>
    <thetext>The WG decided to close the bug accepting the added note as sufficient clarification (but not without considerable discussion straying into the dangerous territory of the identity of stylesheet modules.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>