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"
    <xsd:complexType name="root">
            <xsd:element ref="foo"/>

Received on Thursday, 1 March 2001 09:01:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC