<?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>13001</bug_id>
          
          <creation_ts>2011-06-20 15:36:31 +0000</creation_ts>
          <short_desc>[XSLT 2.0] No error code for copying attribute with validation against complex type</short_desc>
          <delta_ts>2011-06-28 14:42:38 +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>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>tim</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>49919</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-06-20 15:36:31 +0000</bug_when>
    <thetext>The specification describes no specific error condition or error code for use when xsl:copy or xsl:copy-of are used to copy an attribute node when the instruction has a type attribute whose value refers to a complex type. I propose to add to 

19.2.1.2 Validation using the [xsl:]type Attribute

after the description of XTSE1530, the new error condition:

[ERR XTTE1535] It is a type error if the value of the type attribute of an xsl:copy or xsl:copy-of instruction refers to a complex type definition and one or more of the nodes being copied is an attribute node.

I am also creating tests schema90471-err and schema90472-err to test for this condition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49920</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-06-20 15:54:28 +0000</bug_when>
    <thetext>I have taken the liberty of (provisionally) adding this error condition to the status quo draft of the XSLT 3.0 specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50413</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-06-28 13:25:31 +0000</bug_when>
    <thetext>These new tests reference type &quot;enu:methodsC&quot; which doesn&apos;t appear to be in schema046.xsd.  Is it checked in?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50421</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-06-28 14:42:38 +0000</bug_when>
    <thetext>&gt;Is it checked in?

It is now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>