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

Are dangling refs legal?

From: Roger L. Costello <costello@mitre.org>
Date: Thu, 01 Mar 2001 09:08:03 -0500
Message-ID: <3A9E57C3.4769BD78@mitre.org>
To: xmlschema-dev@w3.org, costello@mitre.org
Hi Folks,

Below is a no-namespace schema that declares an element "root".  The
content of "root" is a ref to an element "foo".  However, this schema
does not provide a declaration for "foo" (the idea is that a schema
which <include>s this schema will provide a declaration for "foo").  Is
this dangling ref legal?

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
            elementFormDefault="qualified">
    <xsd:complexType name="root">
        <xsd:sequence>
            <xsd:element ref="foo"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>

/Roger
Received on Thursday, 1 March 2001 09:01:02 GMT

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