<schema targetNamespace="http://worldcat.org/xid/isbn/"
	xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:xid="http://worldcat.org/xid/isbn/"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified">
  
  <annotation>
    <documentation>
      XML Schema which can be used to validate replies to xISBN responses.
      $Id: xid.xsd,v 1.3 2007/03/12 22:56:21 xiaoming Exp $
    </documentation>
  </annotation>
  
  
  <element name="rsp">
    <complexType>
      <sequence>	
	<element name="isbn"  minOccurs="0" maxOccurs="unbounded" type="xid:isbnType"/>
      </sequence>
      <attribute name="stat" type="xid:statusType" use="required"/>	
    </complexType>
  </element>


  <complexType name="isbnType">
    <simpleContent>
      <extension base="string">
	<attribute name="form" type="string" use="optional"/>
	<attribute name="year" type="string" use="optional"/>
	<attribute name="lang" type="string" use="optional"/>
	<attribute name="ed" type="string" use="optional"/>
	<attribute name="title" type="string" use="optional"/>
      </extension>
    </simpleContent>
  </complexType>

  
  <simpleType name="statusType">
    <restriction base="string">
      <enumeration value="ok"/>
      <enumeration value="unknownId"/>
      <enumeration value="unknownMethod"/>
      <enumeration value="unknownFormat"/>
      <enumeration value="unknownField"/>
      <enumeration value="overlimit"/>
    </restriction>
  </simpleType>
</schema>
