W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Re: newbie question - attributes

From: Michael Ryan Bannon <mrbannon@uwaterloo.ca>
Date: Thu, 5 Sep 2002 16:05:05 -0400
Message-ID: <006301c25517$89f3f2f0$445c6181@uwaterloo.ca>
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"

This is the instance:

<?xml version="1.0"?>
<blah xmlns:test="http://www.swen.uwaterloo.ca/~mrbannon/PROTOTYPE"
 <yoyo test:data_item="jklsdfjklsdfjlksdfjkl"/>

And this was the response.  It didn't seem to make any difference.
Schema validating with XSV of 2002/06/10
  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 ->
  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)?



----- 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
> > 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
> > 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
>           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
Received on Thursday, 5 September 2002 16:01:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC