- From: Siarhei Biarozkin <sberyozkin@zandar.com>
- Date: Fri, 13 Sep 2002 10:23:42 +0100
- To: "Eddie Robertsson" <erobertsson@allette.com.au>, "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
- Cc: "XSD" <xmlschema-dev@w3.org>
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 ?
Thanks
Sergey Beryozkin
----- Original Message -----
From: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
To: "Eddie Robertsson" <erobertsson@allette.com.au>
Cc: "XSD" <xmlschema-dev@w3.org>
Sent: Friday, September 13, 2002 9:19 AM
Subject: Re: xs:anySimpleType in sFs
>
> This issue is logged in the issues list [1]. If you look there you
> will find the following resolution:
>
> "Discussed at the May 23 telecon:
> http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002May/0091.html
> Henry Thompson to draft erratum:
>
> * Clarifying that the schema for schemas can derive primitives
> from anySimpleType, although users cannot.
> * Making the constraint normative, as per Jeni Tennison's point."
>
> I should get to this in the next week or 10 days -- there are a lot of
> errata drafting tasks on my stack. . .
>
> ht
>
> [1] http://www.w3.org/2001/05/xmlschema-rec-comments#pfiS4SanySimpleType
> --
> 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 Friday, 13 September 2002 05:24:09 UTC