Re: [Moderator Action] Oracle Schema Processer failing to catch errors.

I can't comment on Oracle's processor, but I observe that
there are a number of minor bugs with your example as posted:

1) the start and end tags of the instance should both be 'Car';
2) the namespace for the xsi prefix is wrong, it should be
   http://www.w3.org/1999/XMLSchema-instance;
3) you declare a number of elements locally, then use the default
   namespace declaration in the instance:  this results in a mismatch
   between the expected (local elt decl==unqualified names) and the
   actual (default ns decl==qualified names) for e.g. Model.

Once these are fixed, XSV finds the following 'real' errors:

<invalid char='2' code='cvc-complex-type.1.4' line='9' resource='file:///projects/ltg/users/ht/xml/xmlschema/monk/tr.xml'>required attribute {None}:PreviouslyOwned not present</invalid>
<invalid char='2' code='cvc-attribute.1.2' line='12' resource='file:///projects/ltg/users/ht/xml/xmlschema/monk/tr.xml'>attribute type check failed for {None}:Automatic: NA not in enumeration [u'Yes', u'No']</invalid>
<invalid char='2' code='cvc-complex-type.1.2.2' line='13' resource='file:///projects/ltg/users/ht/xml/xmlschema/monk/tr.xml'>element content failed type check: 400000000>20000</invalid>

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Thursday, 22 June 2000 08:58:27 UTC