Re: Element containing a list of IDs

"Ashok Malhotra" <petsa@us.ibm.com> writes:

> Mark, try this:
> 
>   <element name='exporteditems'>
>             <simpleType>
>              <list itemType="ID">
>                         <length value="6"/>
>              </list>
>             </simpleType>
>  </element>

Sorry, but that's not valid.  All Mark needs is

<element name='exporteditems'>
             <simpleType>
              <list itemType="ID"/>
             </simpleType>
</element>

as Don Mullen already pointed out.

To restrict its length to 6, the following is required:

<element name='exporteditems'>
  <simpleType>
   <restriction>
             <simpleType>
              <list itemType="ID"/>
             </simpleType>
          <length value="6"/>
   </restriction>
  </simpleType>
</element>

Note how this simply wraps the restriction around the simple list.

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 Thursday, 21 December 2000 13:37:16 UTC