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

may dataTyped elements be empty?

From: Francis Norton <francis@redrice.com>
Date: Wed, 17 Jan 2001 17:28:05 +0000
Message-ID: <3A65D625.72F8B90A@redrice.com>
To: xmlSchema-dev <xmlschema-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT