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

Re: xs:anySimpleType in sFs

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 16 Sep 2002 08:56:18 +0100
To: "Siarhei Biarozkin" <sberyozkin@zandar.com>
Cc: "Eddie Robertsson" <erobertsson@allette.com.au>, "XSD" <xmlschema-dev@w3.org>
Message-ID: <f5b1y7umkpp.fsf@cogsci.ed.ac.uk>

"Siarhei Biarozkin" <sberyozkin@zandar.com> writes:

> Hello,
> this question is probably unrelated to the original post,
> I'd like to constrain a complex type's content in such a way that it can
> only allow elements of any simple type (built-in or user-defined), so that
> their tags could be different :
> <xs:complexType name="PropertiesType">
>   <xs:sequence>
>     <xs:anySimpleType minOccurs="0" maxOccurs="unbounded"/>
>   </xs:sequence>
> </xs:complexType>
> But xs:anySimpleType can not be used, so I'll have to use xs:any instead and
> use some custom validation on top of it,
> Is there another way for achieving such a constraint ?

There's currently no way to constrain the type of an element without
naming the element that carries it, sorry.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, 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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Monday, 16 September 2002 03:56:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC