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:simpleContent>
     <xsd:restriction base="xsd:string">
       <xsd:minLength value="1"/>
     </xsd:restriction>
   </xsd:simpleContent>
  </xsd:complexType>

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

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

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