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:simpleContent>
	  <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
"sequence."

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

	<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:simpleContent>
	  <xsd:extension base="xsd:string">
	    <xsd:sequence maxOccurs="unbounded">
          <xsd:element ref="more" />
        </xsd:sequence>
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
</xsd:element>

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.

John
Received on Tuesday, 5 August 2003 17:36:39 GMT

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