W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 1999

Potential error in schema description of part 1 (structures)

From: Box, Don <dbox@develop.com>
Date: Mon, 8 Nov 1999 23:16:23 -0800
Message-ID: <824EAE80328AD311B2590090276267820ADE2C@mail.develop.com>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
In looking at the schema for schemas
(http://www.w3.org/TR/1999/WD-xmlschema-1-19991105/structures.xsd), I think
I have found found an error or I don't understand archRef.

Line 160 (inside the archetype for 'archetype'):
         <element archRef='modelElt' minOccurs='0' maxOccurs='*'/>

Line 226 (inside the archetype for 'group'):
    <element archRef='modelElt' minOccurs='0' maxOccurs='*'/>

These should probably be replaced with:

<group minOccurs='0' maxOccurs='*' order='choice' >
  <element ref='element' />
  <element ref='group' />

Or perhaps a shared <group> named 'group' that is ref'ed from these two
spots would be better?

While we're on the subject, is there something written down somewhere that
discusses the differences between the 'type' and 'archRef' attributes when
used in an <element>? Also, if 'archRef' is used an no 'name' is provided,
is the element name simply the name of the referenced archetype?

Thanks in advance,
Received on Tuesday, 9 November 1999 02:14:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:45 UTC