<?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>24142</bug_id>
          
          <creation_ts>2013-12-19 17:06:13 +0000</creation_ts>
          <short_desc>[xslt 3.0] xsl:copy with on-empty and validation</short_desc>
          <delta_ts>2014-07-27 19:03:08 +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>All</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="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>97811</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-12-19 17:06:13 +0000</bug_when>
    <thetext>At the end of 11.9.1.1 we say:

If the on-empty expression is evaluated and returns an empty sequence, then the validation and type attributes are ignored. However, if the result of the on-empty expression is a node, then it is subjected to validation as determined by these attributes, along with [xsl:]default-validation where relevant.

However, validation is defined only for document, element, and attribute nodes. We should change this to:

If the on-empty expression is evaluated and returns an empty sequence, or if it returns a text, comment, processing-instruction, or namespace node, then the validation and type attributes are ignored. However, if the result of the on-empty expression is a document, element, or attribute node, then it is subjected to validation as determined by these attributes, along with [xsl:]default-validation where relevant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97812</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-12-19 17:21:06 +0000</bug_when>
    <thetext>Note also, we do not say explicitly what the focus is for evaluation of xsl:copy/@on-empty. It should be the same focus as for evaluation of the xsl:copy/@select attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98950</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-01-23 17:38:30 +0000</bug_when>
    <thetext>Note that on-empty was meant to be present on more instructions...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98965</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-01-23 22:58:00 +0000</bug_when>
    <thetext>Reported here (so as not to hijack this thread): Bug#24378 [1]

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=24378

(sorry, I don&apos;t know how to inline links to other bugs, I know it is possible, but I tried several syntaxes to no avail)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99318</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-01-28 17:47:07 +0000</bug_when>
    <thetext>The WG accepted the changes in comments 0 and 1 and the changes have been applied to the editor&apos;s draft (R).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109321</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-07-27 19:03:08 +0000</bug_when>
    <thetext>The decision on this bug was obsoleted by the decision on bug 24378, which made xsl:copy/@on-empty applicable only to element nodes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>