may dataTyped elements be empty?

Gievn the following two files:

---
C:\customers\iExml>type date.*

date.xsd


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
elementFormDefault="qualified">
        <xsd:element name="DoB" type="xsd:date">
                <xsd:annotation>
                        <xsd:documentation>Date of
Birth</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
</xsd:schema>

date.xml


<?xml version="1.0" encoding="UTF-8"?>
<DoB    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
                 xsi:noNamespaceSchemaLocation="date.xsd"/>

C:\customers\iExml>
---

xsv (current standalone) reports that date.xml is valid, whereas XMLspy
3.5 beta 4 rejects it unless there is a date in there.

I ahve found documentation for the xsi:nullable attribute but cannot
find any explicit discussion of this issue. Which is correct, please?

Francis.

Received on Wednesday, 17 January 2001 12:28:50 UTC