[Bug 13457] Schema has default value for xsi:type

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13457

--- Comment #3 from Michael Kay <mike@saxonica.com> 2011-10-14 09:51:33 UTC ---
(In reply to comment #2)
> Both Element Locally Valid (Complex Type) (§3.4.4.2) and Attribute Default
> Value (§3.4.5.1) refer the definition of "defaulted attribute"
> 
> http://www.w3.org/TR/xmlschema11-1/#key-dflt-att
> 
> This definition excludes the built-in xsi: attributes, and use-defined
> attributes can't be in the xsi: namespace.

thanks for the reference.
> 
> Because the default xsi:type value is not applied, 3.4.5.1 doesn't apply
> either.
> 
> If the default QName value is on a non-xsi attribute, then the implementation
> can choose to perform namespace fix-up or not. But I don't think the attribute
> will be deemed invalid either way. Defaulted attributes are not validated
> again.

That looks questionable to me. Certainly in a QT context, if the attribute is
labelled as a valid QName instance then XDM requires the prefix to be in scope.
But it's not directly relevant to this bug, so will fix the test and close. The
XSD spec really fudges the question of whether a QName can be string-valid or
datatype-valid without knowing the namespace context.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 14 October 2011 09:51:41 UTC