This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13001 - [XSLT 2.0] No error code for copying attribute with validation against complex type
Summary: [XSLT 2.0] No error code for copying attribute with validation against comple...
Status: NEW
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 15:36 UTC by Michael Kay
Modified: 2011-06-28 14:42 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2011-06-20 15:36:31 UTC
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.
Comment 1 Michael Kay 2011-06-20 15:54:28 UTC
I have taken the liberty of (provisionally) adding this error condition to the status quo draft of the XSLT 3.0 specification.
Comment 2 Tim Mills 2011-06-28 13:25:31 UTC
These new tests reference type "enu:methodsC" which doesn't appear to be in schema046.xsd.  Is it checked in?
Comment 3 Michael Kay 2011-06-28 14:42:38 UTC
>Is it checked in?

It is now.