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

Re: a simple question about ComplexContent schema element

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 21 Apr 2003 10:07:35 +0100
To: <mrana@atiam-tech.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bvfx8qkvc.fsf@erasmus.inf.ed.ac.uk>

So the combination of the two, correct, responses you've received leads
to the following solution:

  <xsd:complexType name="companyTypeInternal">
     <xsd:restriction base="xsd:string">
       <xsd:minLength value="1"/>

  <xsd:complexType name="companyType">
     <xsd:extention base="my:companyTypeInternal">
	<xsd:attribute name="tbl" type="xsd:string" default="COMPANY"/>

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-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, 21 April 2003 05:07:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:01 UTC