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

RE: referencing a schema fails

From: Dare Obasanjo <dareo@microsoft.com>
Date: Tue, 5 Aug 2003 14:36:30 -0700
Message-ID: <830178CE7378FC40BC6F1DDADCFDD1D11930DF@RED-MSG-31.redmond.corp.microsoft.com>
To: <jhaber@haberarts.com>, "Paul Warren" <pdw@decisionsoft.com>
Cc: <xmlschema-dev@w3.org>

	  <xsd:extension base="xsd:string">
	    <xsd:sequence maxOccurs="unbounded">

How can simple content contain a sequence of elements? 

-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
On Behalf Of John Haber
Sent: Tuesday, August 05, 2003 2:23 PM
To: Paul Warren
Cc: xmlschema-dev@w3.org
Subject: RE: referencing a schema fails

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

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

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

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:36:39 UTC

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