W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2000

Re: [Moderator Action] Abstract type with no constraint on content

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 11 Nov 2000 11:23:59 +0000
To: Gino Basso <GBasso@ware2.com>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5blmuq3g6o.fsf@cogsci.ed.ac.uk>
Gino Basso <GBasso@ware2.com> writes:

> Is there any way I can define the abstract base type 'ObjectName' in the
> schema below such that there is no constraint on the content?

The Schema for Schemas contains an approximation to the ur-type [1]
(at the very end).  Copy that, substituting 'ObjectName' for
'anyType':

         <complexType name="ObjectName" mixed="true">
          <sequence>
           <any minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
          <anyAttribute/>
         </complexType>

ht

[1] http://www.w3.org/TR/xmlschema-1/#normative-schemaSchema
-- 
  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 Saturday, 11 November 2000 06:24:01 GMT

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