Hi Jorge, On Tue, Apr 3, 2012 at 11:05 PM, Jorge Williams <jorge.willi...@rackspace.com> wrote: > You shouldn't need to define X at all, right?
I think declaration for element "X" in an XSD schema in this case, would certainly be required (i.e xs:element ... etc) for an XML instance element to be considered valid. >...or am I missing something? If you remove > >> <xs:element name="X" type="xs:integer"/> > > from your schema, you'll see the same issue I am....the XML appears valid but > it's not. >From a quick look, it seems to me that when xsi:type is present in an XML instance element (and the XSD type pointed by xsi:type has an xs:assertion) and if this instance XML element doesn't have a corresponding xs:element declaration in the schema, the validation still passes. It doesn't look like a issue of xs:assertion not working correctly when the type comes from xsi:type (my example demonstrates this), but there looks a different issue which needs to be investigated. Thanks for creating a Jira bug -- it'll be actioned appropriately. -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org