W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

RE: Derivation by restriction from <any>

From: Dare Obasanjo <dareo@microsoft.com>
Date: Thu, 7 Mar 2002 13:45:55 -0800
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E05573B9B@red-msg-06.redmond.corp.microsoft.com>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>, <Simon.Cox@csiro.au>
Cc: <xmlschema-dev@w3.org>
Upon investigating the W3C XML Schema Structures specification I've had
some difficulty locating where it specifies that one-to-many particle
derivations are acceptable. I would appreciate a pointer to where in the
recommendation it mentions that this is possible. From what I've read[0]
particle derivation is a one-to-one affair. 

Thanks. 

[0]
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cd-model-restriction

-- 
THINGS TO DO IF I BECOME AN EVIL OVERLORD #230
I will not procrastinate regarding any ritual granting immortality.


> -----Original Message-----
> From: Henry S. Thompson [mailto:ht@cogsci.ed.ac.uk] 
> Sent: Tuesday, March 05, 2002 2:28 AM
> To: Simon.Cox@csiro.au
> Cc: xmlschema-dev@w3.org
> Subject: Re: Derivation by restriction from <any>
> 
> 
> Simon.Cox@csiro.au writes:
> 
> > Is it possible to derive by restriction starting with an <any>?
> > 
> > e.g.
> > 
> > <complexType name="basetype">
> >   <sequence>
> >     <any maxOccurs="unbounded"/>
> >   </sequence>
> > </complexType>
> > 
> > <complexType name="newtype">
> >   <complexContent>
> >     <restriction base="my:basetype">
> >       <sequence>
> >         <element name="e1" type="string"/>
> >         <element name="e2" type="integer" minOccurs="0"/>
> >         <element name="e3" type="date" minOccurs="0"/>
> >       </sequence>    
> >     </restriction>
> >   </complexContent>
> > </complexType>
> 
> Yes, that should be fine.
> 
> 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, 7 March 2002 16:46:28 GMT

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