W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: yet another problem with global stuff

From: Guillaume Rousse <rousse@ccr.jussieu.fr>
Date: Thu, 6 Dec 2001 15:55:04 +0100
To: xmlschema-dev@w3.org
Message-Id: <20011206145504.95AC34883@silbermann.snv.jussieu.fr>
Ainsi parlait Guillaume Rousse :
> Still using xerces-j 1.4.4
> <persons id="pers">
>   <person id="pers2">
>     <firstName>J. W.</firstName>
>     <lastName>Abalos</lastName>
>   </person>
>   <person id="pers3">
>     <firstName>E.</firstName>
>     <lastName>Abonnenc</lastName>
>   </person>
> [guillaume@silbermann xml]$ xml-check data/cipa.xml
> [Error] cipa.xml:21:24: Attribute "id" is required and must be specified
> for element type "persons".
> [Error] cipa.xml:21:24: Attribute "id" must be declared for element type
> "persons".
> The error message is quite confusing. The first seems to complains about a
> not found required attribute, the second about a found unwaited attribute !
The xerces-j 2 beta 3 messages are a bit more clear, but i still don't catch 
the explanation:
[Error] cipa.xml:21:24: cvc-complex-type.4: Attribute 'id' must appear on 
element 'persons'.
[Error] cipa.xml:21:24: cvc-complex-type.3.2.2: Attribute 'id' is not valid 
respect to the attribute wildcard of Elment 'persons'.
-- 
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
Received on Thursday, 6 December 2001 09:56:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT