Re: Elements inside simpleType?

You appear to want mixed content, if I read your examples correctly,
so try this:

Lassi Nirhamo <lasnir@tkukoulu.fi> writes:

<comments allowremove="true" markerlimit="1300">
    <comment id="c0" type="cd1">Some text 
      <comment id="c1" type="cd5">Another text</comment> 
    </comment>
    <comment id="c2" type="cd3">More text</comment>
</comments>

and come up with

<complexType name="commentsType">
    <element name="comment" type="doc:commentType" minOccurs="0" maxOccurs="unbounded"/>	        <attribute name="allowremove" type="boolean"/>
    <attribute name="markerlimit" type="int"/>
</complexType>

<complexType name="commentType" content="mixed">
    <element name="comment" type="doc:commentType" minOccurs="0" maxOccurs="unbounded"/>
    <attribute name="id" type="doc:commentId"/>
    <attribute name="type" type="doc:commentDefId"/>
</complexType>

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Monday, 16 October 2000 07:37:31 UTC