W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2000

Re: Elements inside simpleType?

From: Lassi Nirhamo <lasnir@tkukoulu.fi>
Date: Tue, 17 Oct 2000 10:11:31 +0200
To: xmlschema-dev@w3.org
Message-Id: <20001017071135Z142967-7615+1450@roope.top.tkukoulu.fi>
At 12:04 16.10.2000 +0100,ht@cogsci.ed.ac.uk (Henry S. Thompson) wrote:
>You appear to want mixed content, if I read your examples correctly,
>so try this:
><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"/>

Thank you, it does the job. I have to pratice my english and learn to read;-) :


<xsd:element name="letterBody">
 <xsd:complexType mixed="true">
   <xsd:element name="salutation">
    <xsd:complexType mixed="true">
      <xsd:element name="name" type="xsd:string"/>
   <xsd:element name="quantity" type="xsd:positiveInteger"/>
   <xsd:element name="productName" type="xsd:string"/>
   <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
   <!-- etc -->

Lassi Nirhamo
Received on Tuesday, 17 October 2000 03:07:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:47 UTC