RE: XML Schema: Formal Description is now published

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 UTC