W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Schema Validation

From: Kumeda <kumeda@atc.yamatake.co.jp>
Date: Fri, 14 Dec 2001 14:25:06 +0900
Message-Id: <200112140523.OAA99916@ATCGATE.atc.yamatake.co.jp>
To: xmlschema-dev@w3.org

I have just validated my schema and got an "Undeclared attribute" 
error. The system says:

Invalid per cvc-complex-type.1.3: undeclared attribute

What is wrong with my schema?

----- The schema just validated and got an error ------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

<xsd:element name="contact" type="means" maxOccurs="99" />

<xsd:simpleType name="means">
   <xsd:union memberTypes="email fax" />

<xsd:simpleType name="email">
  <xsd:restriction base="xsd:string">
    <xsd:pattern value="[a-z]@[a-z0-9]+" />

<xsd:simpleType name="fax">
  <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d+-\d+-\d+" />

Kumeda, Yasuo                          TEL: +81-466-20-2430
                                       FAX: +81-466-20-2431
Research and Development Headquarters
Yamatake Corporation

Fujisawashi Kawana 1-12-2
Kanagawa, 251-8522 JAPAN
Received on Friday, 14 December 2001 00:24:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC