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 17:22:48 -0400
To: "Paul Warren" <pdw@decisionsoft.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <DJELKIDJKFDDBJAHIDIAKELLCNAA.jhaber@haberarts.com>

Hate to ask for help again, all, but I'm making great progress.  With Paul's
help, I seem to have narrowed it down to a single problem area.  Using the
DecisionSoft validator, I am down to three errors -- and they all seem to
involve the same concern, the proper placement of "sequence."

Two of the errors occur when I have an inline element that may repeat, like

	<intro>Lots and lots of <more file="blah.htm">related text</more>

In such a case, I tried a few things, but most recently

<xsd:element name="intro">
  <xsd:complexType mixed="true">
	  <xsd:extension base="xsd:string">
	    <xsd:sequence maxOccurs="unbounded">
          <xsd:element ref="more" />

The error says that "sequence" here isn't allowed.  Similarly, another
element attempts to place an attribute with an element that otherwise
contains only child elements but no text.  So I tried to place within a
complex element an attribute and a sequence.

Received on Tuesday, 5 August 2003 17:21:19 UTC

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