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

"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
http://www.w3.org/TR/2000/WD-xmlschema-1-20000407/#declare-attribute

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
http://slow1.w3.org/XML/2000/04schema-hacking/smil-animation.xsd:
 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