<?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>29919</bug_id>
          
          <creation_ts>2016-10-06 22:43:36 +0000</creation_ts>
          <short_desc>[XSLT30] Effect of use-when on xsl:package</short_desc>
          <delta_ts>2016-10-13 19:51:36 +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>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="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>127678</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-10-06 22:43:36 +0000</bug_when>
    <thetext>In section 3.13.1 Conditional Element Inclusion we mention the following about its use on xsl:stylesheet and xsl:transform:

&quot;If the xsl:stylesheet or xsl:transform element itself is effectively excluded, the effect is to exclude all the children of the xsl:stylesheet or xsl:transform element, but not the xsl:stylesheet or xsl:transform element or its attributes.&quot;

It seems to make sense to include xsl:package here as well. I don&apos;t necessarily see a use-case for it (but I don&apos;t see one for xsl:stylesheet/xsl:transform either), but neither do I see how otherwise a package is supposed to behave if use-when=&quot;false()&quot; on xsl:package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127762</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-13 15:00:33 +0000</bug_when>
    <thetext>I agree.

(I don&apos;t think there was ever a particularly strong use case for this. We either had to give it a meaning, or make it an error, and we chose to give it a meaning.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127773</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-13 19:51:36 +0000</bug_when>
    <thetext>The WG agreed and the change has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>