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:21:19 UTC