Re: Extension of xs:simpleContent

Sorry, I got ahead of myself.  It's the fact that under XSD 1.1 the 
content type is empty, combined with the rules at 
http://www.w3.org/TR/xmlschema11-1/#sec-cos-ct-extends, that makes the 
extension (and the schema) invalid in the first place.  So, it wouldn't 
really be right to have the validation error on the XML (since the 
schema isn't valid in the first place.)

On 11/17/2010 1:39 PM, Kevin Braun wrote:
> Hi,
>
> Under XSD 1.0, I believe the validation error is not correct.  Rule 
> 3.2.1 of "Complex Type Definition with complex content" applies, so 
> that the {content type}would be xs:double.
> (http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#declare-type). 
>
>
> Under XSD 1.1, the parallel part of the recommendation 
> (http://www.w3.org/TR/xmlschema11-1/#dcl.ctd.ctcc.common) leads to a 
> content type of empty.  In that case, the validation error would be 
> correct.
>
> Regards,
> Kevin
>

Received on Wednesday, 17 November 2010 18:56:44 UTC