<?xml version="1.0" encoding="UTF-8"?>
<!-- BooksSchema: sample W3C XML Schema describing BooksDoc.xml with SPAT.
SPAT: http://www.w3.org/2007/01/SPAT/

$Revision: 1.1 $
  -->
<xs:schema
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 elementFormDefault="qualified"
 targetNamespace="http://example.org/schemas/XML/Books/"
 xmlns:xb="http://example.org/schemas/XML/Books/"
 xmlns:spat="http://www.w3.org/2007/01/SPAT/ns"
 xmlns:rb="http://example.org/schemas/RDF/Books#">
  <xs:element name="BookList">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="xb:Book"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Book"
   spat:SPAT="&lt;http://example.org/books&gt; rb:name      xpath(&quot;xb:Title&quot;) .
	      &lt;http://example.org/books&gt; rb:publisher xpath(&quot;xb:Publisher&quot;) .">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Title" type="xs:string"/>
        <xs:element name="Publisher" type="xs:string"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
