Re: a simple question about ComplexContent schema element

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 UTC