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

RE: Schema for schemas bugs?

From: Mark Feblowitz <mfeblowitz@frictionless.com>
Date: Wed, 24 Apr 2002 13:14:44 -0400
Message-ID: <4DBDB4044ABED31183C000508BA0E97F040ABA70@fcpostal.frictionless.com>
To: "'ht@cogsci.ed.ac.uk'" <ht@cogsci.ed.ac.uk>, Aung Aung <aaung@microsoft.com>
Cc: xmlschema-dev@w3.org, www-xml-schema-comments@w3.org
Henry - could you explain why (or point to a source that does) numbers 2 and
3 are  not valid?

Thanks,

Mark

----------------------------------------------------------------------------
----
 
Mark Feblowitz                                   [t] 617.715.7231
XML Architect                                     [f] 617.495.0188 
Frictionless Commerce Incorporated     [e] mfeblowitz@frictionless.com
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
http://www.frictionless.com   
 

 -----Original Message-----
From: 	ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk] 
Sent:	Wednesday, April 24, 2002 6:42 AM
To:	Aung Aung
Cc:	xmlschema-dev@w3.org; www-xml-schema-comments@w3.org
Subject:	Re: Schema for schemas bugs?

"Aung Aung" <aaung@microsoft.com> writes:

> Thanks Henry. We are now all waiting for the Errata. The following 2
> issues is for clarification and commonality, please comment for any
> error.

> First thing ~~~~~~~~~~~~~
> You have memtioned that renaming of anySimpleType or anyType is. Will
> there be an errata for this? Below is a mail from you from 11/01.

The WG haven't gotten to this one yet.  What follows is only my
personal opinion.

> >> 1.
> >> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
> >>       <xs:simpleType name="ct1">
> >>             <xs:restriction base="xs:anyType" />
> >>       </xs:simpleType>
> >> </xs:schema>
> 
> >Yes, invalid.

No erratum required, user-deriving a simple from a complex is already
disallowed.

> >> 2.
> >> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
> >>       <xs:simpleType name="ct2">
> >>             <xs:restriction base="xs:anySimpleType" />
> >>       </xs:simpleType>
> >> </xs:schema>
> 
> >Yes, invalid.

Needs an erratum, one way or another.

> >> 3.
> >> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
> >>       <xs:complexType name="ct4">
> >>             <xs:simpleContent>
> >>                   <xs:restriction base="xs:anySimpleType" />
> >>             </xs:simpleContent>
> >>       </xs:complexType>
> >> </xs:schema>
> 
> >Yes, invalid.

Needs an erratum, one way or another.

> >But you raise an interesting point -- the above don't actually attempt 
> >a restriction, just a private renaming.  There's no reason we shouldn't
> >allow this.  The third case in particular, if it contained attributes,
> is >something people might reasonably wish to do.
> 
> >I'll raise a potential erratum on this.
> >Ht
> 
> In short, I think we will need the following 2 points in errata.
> (1) allow renaming of anyType or AST
> (2) Restriction with facets on anySimpleType is not allowed unless the
> restriction is build-in dataTypes (to satisfy SfS).

-- 
  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 Wednesday, 24 April 2002 13:15:55 GMT

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