- From: Michael Ryan Bannon <mrbannon@uwaterloo.ca>
- Date: Thu, 5 Sep 2002 16:05:05 -0400
- To: "Bob Schloss" <rschloss@us.ibm.com>, "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
- Cc: <xmlschema-dev@w3.org>
Hello again, Sorry for the late response on this...I was on vacation. This is the updated schema I used: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink"> </xsd:schema> This is the instance: <?xml version="1.0"?> <blah xmlns:test="http://www.swen.uwaterloo.ca/~mrbannon/PROTOTYPE" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.swen.uwaterloo.ca/~mrbannon/PROTOTYPE http://www.swen.uwaterloo.ca/~mrbannon/prototype.xsd"> <yoyo test:data_item="jklsdfjklsdfjlksdfjkl"/> </blah> And this was the response. It didn't seem to make any difference. Schema validating with XSV 1.203.2.47.2.4.2.11/1.106.2.25.2.3 of 2002/06/10 14:39:33 a.. Target: file:/usr/local/XSV/xsvlog/@29232.4uploaded (Real name: J:\Thesis\Model\instance.xml) b.. docElt: {None}blah c.. schemaLocs: http://www.swen.uwaterloo.ca/~mrbannon/PROTOTYPE -> http://www.swen.uwaterloo.ca/~mrbannon/prototype.xsd d.. The schema(s) used for schema-validation had no errors e.. instanceAssessed: false I'm not sure what to make of this. Should I be enforcing a lax validation (if possible)? Thanks, Ryan ----- Original Message ----- From: "Henry S. Thompson" <ht@cogsci.ed.ac.uk> To: "Bob Schloss" <rschloss@us.ibm.com> Cc: <mrbannon@swen.uwaterloo.ca>; <xmlschema-dev@w3.org> Sent: Tuesday, August 20, 2002 4:26 AM Subject: Re: newbie question - attributes > Bob Schloss <rschloss@us.ibm.com> writes: > > <snip/> > > > A schema validator will not check that the content of an attribute matches > > the constraints specified unless it knows that the element on which the > > attribute appears has a content model that needs to be checked, and that > > model calls for that particular attribute, or a class of attributes, to be > > checked. > > I beg to differ. Lax validation, which is what may ensue when a > validator has no declaration for the document element, uses the > Ur-type repeatedly. This includes an attribute wildcard, which in > turn means that if a top-level declaration for a ns-qualified > attribute is available, it will be enforced. > > XSV implements this, but since it doesn't implement boolean, no error > is reported with the example as given. Change the definition of > test:data_item to xsd:decimal, and XSV detects the error, since it > _does_ implement decimal. > > ht > -- > Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh > W3C Fellow 1999--2002, 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/ > [mail really from me _always_ has this .sig -- mail without it is forged spam] >
Received on Thursday, 5 September 2002 16:01:57 UTC