W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2003

RE: referencing a schema fails

From: John Haber <jhaber@haberarts.com>
Date: Tue, 5 Aug 2003 09:34:12 -0400
To: "Paul Warren" <pdw@decisionsoft.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <DJELKIDJKFDDBJAHIDIAEELFCNAA.jhaber@haberarts.com>

>>Could you repost the instance and schema, as they are now?

Sure, Paul, and my thanks.

Here's how the test schema file begins, where I'll stop in the middle of the
first child element.  This file is saved as artml.xsd:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com" xmlns="http://www.w3schools.com"
<xsd:element name="reviews">
    <xsd:sequence maxOccurs="unbounded">
	  <xsd:element ref="review" />
<xsd:element name="review">
	  <xsd:element ref="blurb" />
	  <xsd:element ref="exhibition" />
	  <xsd:element ref="essay" />
	  <xsd:element ref="images" />

And here's how the first test xml file begins, stopping my cut-and-paste at
around the same point to save you reading:

<?xml version="1.0" encoding="ISO-8859-1"?>
<reviews xmlns="http://www.w3schools.com"
  <review author="John Haber" completed="2003-07-30">

The files are in the same directory on my hard drive.

Thanks again,
Received on Tuesday, 5 August 2003 09:33:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:12 UTC