<?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>7624</bug_id>
          
          <creation_ts>2009-09-15 07:40:16 +0000</creation_ts>
          <short_desc>[XSLT 2.0] xsl:copy when there is no context item</short_desc>
          <delta_ts>2010-07-15 09:06:02 +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 2.0</component>
          <version>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>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>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>27168</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-09-15 07:40:16 +0000</bug_when>
    <thetext>There is no explicit statement in the spec that it is an error to use xsl:copy when there is no context item.

Clearly this should be an error. The question is, what error? In many cases the error can be detected statically, though in a few cases this may not be possible (e.g. within a named template). xsl:number handles this by making it a type error (XTTE0990). Oddly, however, using select=&quot;.&quot; when there is no context item is a dynamic error rather than a type error (XPDY0002).

Pending a decision on this, I am creating a test case (copy903err) in which the expected error code is the new code XTTE0945.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35675</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-05-13 16:51:26 +0000</bug_when>
    <thetext>Agreed that this should be type error XPDY0002; an erratum will be drafted to that effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35702</commentid>
    <comment_count>2</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2010-05-14 17:14:35 +0000</bug_when>
    <thetext>On May 13, 2010 the XSL WG agreed that this should become an erratum and that the bug should be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36252</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-06-18 11:12:02 +0000</bug_when>
    <thetext>I believe that comment #1 captures the decision incorrectly - the note was written in haste during a meeting, and the agreed error code should be the type error XTTE0945 not the dynamic error XPDY0002.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36892</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 09:06:02 +0000</bug_when>
    <thetext>This will be erratum E44.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>