Re: xs:anySimpleType in sFs

"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.

ht
-- 
  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