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

yet another problem with global stuff

From: Guillaume Rousse <rousse@ccr.jussieu.fr>
Date: Thu, 6 Dec 2001 15:26:29 +0100
To: xmlschema-dev@w3.org
Message-Id: <20011206142629.E1EDE302@silbermann.snv.jussieu.fr>
Still using xerces-j 1.4.4
<persons id="pers">
  <person id="pers2">
    <firstName>J. W.</firstName>
  <person id="pers3">
[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 
The error message is quite confusing. The first seems to complains about a 
not found required attribute, the second about a found unwaited attribute !

This is local:
<element name="persons" minOccurs="0" maxOccurs="1">
      <element ref="model:person" minOccurs="1" maxOccurs="unbounded"/>
    <attribute ref="model:id" use="required"/>
These are global:
<attribute name="id" type="model:KeyType"/>
<element name="person" type="model:PersonType"/>
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
Received on Thursday, 6 December 2001 09:27:40 UTC

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