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 13457 - Schema has default value for xsi:type
Summary: Schema has default value for xsi:type
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Saxon tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 15:42 UTC by David Ezell
Modified: 2011-10-17 12:01 UTC (History)
2 users (show)

See Also:


Attachments

Description David Ezell 2011-07-29 15:42:55 UTC
complex004.n2.xml
Spec says instance should be valid, since it matches the declared type, and xsi:type defaults should not be honored.
Comment 1 Michael Kay 2011-10-08 15:54:27 UTC
I would like further discussion of this.

3.2.6.4 says: Note: It is legal for Attribute Uses that refer to xsi: attributes to specify default or fixed value constraints (e.g. in a component corresponding to a schema document construct of the form <xs:attribute ref="xsi:type" default="xs:integer"/>), but the practice is not recommended; including such attribute uses will tend to mislead readers of the schema document, because the attribute uses would have no effect; see Element Locally Valid (Complex Type) (
Comment 2 Sandy Gao 2011-10-14 03:36:34 UTC
Both Element Locally Valid (Complex Type) (
Comment 3 Michael Kay 2011-10-14 09:51:33 UTC
(In reply to comment #2)
> Both Element Locally Valid (Complex Type) (
Comment 4 Michael Kay 2011-10-17 12:01:39 UTC
Expected result of complex004.n2.xml has been changed to "valid".