<?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>29205</bug_id>
          
          <creation_ts>2015-10-15 16:31:33 +0000</creation_ts>
          <short_desc>[XSLT30] xsl:use-when and shadow attributes on LREs, extension instructions and data elements</short_desc>
          <delta_ts>2015-10-28 17:14: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>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>
          <cc>sca.w3c</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>123723</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-10-15 16:31:33 +0000</bug_when>
    <thetext>Originally reported on the public XSL WG list: https://lists.w3.org/Archives/Public/public-xsl-wg/2015Oct/0019.html. Relevant parts repeated here:

We say about using xsl:use-when on elements not in the XSLT namespace the following:

&quot;A literal result element, or any other element within a stylesheet module that is not in the XSLT namespace, may similarly carry an xsl:use-when attribute.&quot;

We use the words &quot;similarly&quot; and &quot;carry&quot;. But we don&apos;t seem to explicitly say that the same rules apply, i.e., that if the EBV is false(), the LRE is effectively excluded, including all its children. In the case of data elements and extension instructions I would argue that its behavior on that instruction is implementation defined. Or if not, I think we should explicitly say so. 

----

A proposal to fix this has first been reported here: https://lists.w3.org/Archives/Public/public-xsl-wg/2015Oct/0024.html. 

On the XSLWG telcon of 2015-10-15 this proposal was accepted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123725</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-15 21:31:42 +0000</bug_when>
    <thetext>I have moved the sentence &quot;&quot;A literal result element, or any other element within a stylesheet module that is not in the XSLT namespace, may similarly carry an xsl:use-when attribute.&quot; to remove this potential misunderstanding.

I have also added a note to the section on shadow attributes to clarify the effect of attributes whose name begins with underscore on literal result elements, extension instructions, and data elements.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>