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

Re: Element containing a list of IDs

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 21 Dec 2000 18:37:13 +0000
To: "Ashok Malhotra" <petsa@us.ibm.com>
Cc: MarkH@i2.co.uk, xmlschema-dev@w3.org
Message-ID: <f5b4rzxwrhi.fsf@cogsci.ed.ac.uk>
"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'>
              <list itemType="ID"/>

as Don Mullen already pointed out.

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

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

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

  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 GMT

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