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

Re: help! can't get attribute mix-in to work

From: Dan Connolly <connolly@w3.org>
Date: Thu, 04 May 2000 14:15:51 -0500
Message-ID: <3911CC67.671F19B7@w3.org>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
CC: xmlschema-dev@w3.org

"Henry S. Thompson" wrote:
> Dan Connolly <connolly@w3.org> writes:
> > but I don't see why it's not finding my declaration of t:begin:
> >
> > Validation error: in unnamed entity at line 15 char 1 of
> > http://slow1.w3.org/XML/2000/04schema-hacking/h+s.html:
> >  can't find a type for wildcard-matching attribute
> > {http://www.w3.org/2000/TR/smil-animation10}:begin
> Because there is no top-level attribute declaration for 'begin' in
> that schema.
> Attribute declarations in attribute groups are not 'top-level',
> because they're not guaranteed to be unique.

Hmm... I tried to read carefully... I concluded from the
specification of the [targetNamespace] property of
Attribute Declaration Schema Components that this should work.

But now I see the [scope] property in

OK. Thanks.

> If I change the relevant part of your schema to read:
>   <attribute name="begin" type="string"/>
> it works fine.  (Now that I fixed a typo in the opportunistic
> attribute validation code, that is :-)

by the way, I suggest you delete the phrase "may not" from
your tech-writing vocabulary. Always write "must not"
in stead (unless you mean "need not" in which case
just say "may" or "required" or "optional" or some such).

I puzzled over this message:

Schema Error, in unnamed entity at line 148 char 4 of
 top-level attribute may not have use

thinking that it meant something like "I see a top level attribute
declared, but I don't see any use of it" ala "variable defined but
not used" complier warnings.

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Thursday, 4 May 2000 15:36:14 UTC

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