W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

RE: XML Schema: Formal Description is now published

From: Ray S. Waldin <rwaldin@cacheon.com>
Date: Tue, 20 Mar 2001 12:59:48 -0800
To: <www-xml-schema-comments@w3.org>
Message-ID: <000f01c0b180$b39c7780$331ea8c0@cacheon.com>
Regarding http://www.w3.org/TR/2001/WD-xmlschema-formal-20010320/...

1) There is a well-formedness error starting on the third line of the
example schema:

  <xsi:simpleType name="b"/>
    <xsi:list base="xsi:integer"/>
  </xsi:simpleType>

The xsi:simpleType element should not be empty.

2) Using "xsi" as a prefix for the "http://www.w3.org/2001/XMLSchema"
namespace is a little misleading as most of the recent XML Schema
specifications use this same prefix for the
"http://www.w3.org/2001/XMLSchema-instance" namespace.

3) The sample document:

<baz:a xmlns:baz="http://www.example.com/baz.xsd"
    xsi:type="baz:u"
    b="zero"
    c="1 2">
  <d>
    <a>three</a>
    <a>four</a>
  </d>
</baz:a>

uses the "xsi" prefix, but does not define it.  I presume this should map to
the "http://www.w3.org/2001/XMLSchema-instance" namespace, in this case.

4) In the sample document:

<baz:a xmlns:baz="http://www.example.com/baz.xsd"
    xsi:type="baz:u"
    b="zero"
    c="1 2">
  <d>
    <a>three</a>
    <a>four</a>
  </d>
</baz:a>

The "baz:a" element (which is of complexType "baz:u") does not allow the "d"
element in its content model.  Only the "baz:d" element is allowed.

-Ray
Received on Tuesday, 20 March 2001 16:00:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT