- From: Dare Obasanjo <dareo@microsoft.com>
- Date: Sat, 8 Feb 2003 13:38:06 -0800
- To: <shayb@rafael.co.il>, "Xmlschema-Dev" <xmlschema-dev@w3.org>
Henry gave you a valid answer to your question and was quite patient. I'd take his advice about reading the primer or some other material to make yourself more familiar with W3C XML Schema if you plan to be authoring schemas by hand. In any case, Henry has told you what to do. Remove the xsi prefix from all the elements in your instance document and only place it on the noNamespaceSchemaLocation attribute. -----Original Message----- From: SHAY [mailto:shayb@rafael.co.il] Sent: Sat 2/8/2003 1:25 PM To: Xmlschema-Dev Cc: Subject: RE: Problem with validation against Schema. Thanks for directing me back to the start. "Go get your self a book" is the best explicit advice I could have gotten. The Instance is exactly as you say it should be, but still the schema fails to validate. Does the Xmlschema-Dev team have less busy person to consult with ?? Thanks Shay. -----Original Message----- From: ht@inf.ed.ac.uk [mailto:ht@inf.ed.ac.uk]On Behalf Of Henry S. Thompson Sent: Friday, February 07, 2003 11:19 AM To: shayb@rafael.co.il Cc: Xmlschema-Dev Subject: Re: Problem with validation against Schema. "SHAY" <shayb@rafael.co.il> writes: > Hello Henry. > > I followed your instructions and the outcome is: Removal of the xsi: > prefix from the elements raises this Error massage: The element > 'proposals' is used but not declared in the DTD/Schema. I tried > not to mention the xsi attribute at all, something like this: > > <proposals noNamespaceSchemaLocation="file:///C:/My > Documents/proposal1.xsd"> > > But in this case the processor doesnt even bother to locate the > schema. It ignores it. Only when the xsi: prefix is attached to all > elements the schema is located and checked for well-formedness. But > - no validation performed. I didn't say to remove the declaration, or to remove the prefix from the attribute. Your instance should begin: <proposals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///C:/My Documents/proposal1..xsd"> I encourage you to look at the Primer [1], or get an introductory XML Schema book -- you seem to be a bit unfamiliar with how namespaces and schemas work. ht [1] http://www.w3.org/TR/xmlschema-0/ -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-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/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Saturday, 8 February 2003 16:38:24 UTC