W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

RE: Element containing a list of IDs

From: <MarkH@i2.co.uk>
Date: Tue, 2 Jan 2001 10:01:12 -0000
Message-ID: <1E73B637CFC3D411A12F00B0D0795DDD0B1D8E@uknts40exh01.i2.co.uk>
To: xmlschema-dev@w3.org
Cc: donmullen@tibco.com, ht@cogsci.ed.ac.uk
And finally, the solution...

    <element name='exporteditems' minOccurs='0' maxOccurs='1'>
     <complexType>
      <sequence>
       <element name='endids' minOccurs='0' maxOccurs='1'>
         <simpleType>
           <list itemType='ID'/>
         </simpleType>
       </element>
       <element name='linkids' minOccurs='0' maxOccurs='1'>
         <simpleType>
           <list itemType='ID'/>
         </simpleType>
       </element>
      </sequence>
     </complexType>
    </element>

My problem was that I didn't need the <restriction>. Obvious now - as always
once solved!

Thanks to Don and Henry for helping me with this trivial problem :#) I'm now
in a better position to sort things like this out myself in future.

Mark
--
Mark Hughes
  Agile HTML Editor
    http://www.agilic.com
 
Received on Tuesday, 2 January 2001 05:08:00 GMT

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