W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2000

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

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 22 Jun 2000 13:58:24 +0100
To: "Tom Renahan" <trenahan@hotmail.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5b4s6lna8f.fsf@cogsci.ed.ac.uk>
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
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>

  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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:49 UTC