(Trying another email client to avoid the attachments. Again, profuse apologies!) Could someone confirm if the derivedBy attribute is only required when you derive a complex type, but not when you derive a simple one? For example, there is the example in the Primer: <xsd:simpleType name="Sku" base="xsd:string"> <xsd:pattern value="\d{3}-[A-Z]{2}"/> </xsd:simpleType> which validates just fine. But when I have a complex type definition like: <xsd:complexType name="populationType" base="xsd:integer"> <xsd:attribute name="year" use="required"> <xsd:simpleType base="xsd:integer"/> </xsd:attribute> the XML Schema Validator (XSV) gives me an error and says I must use the derivedBy extension if the base is present. thanks, Liz Liz Castro Cookwood Press http://www.cookwood.comReceived on Tuesday, 8 August 2000 21:20:42 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:47 GMT