1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- $Header: /home/cvsroot/w3c-xml-schema/user/examples/first-building-blocks.xsd,v 1.1 2001/11/26 13:27:07 vdv Exp $ -->
3 <xs:schema xmlns:
xs=
"http://www.w3.org/2001/XMLSchema">
5 <xs:include schemaLocation=
"vdv-simpleTypes.xsd"/>
6 <xs:include schemaLocation=
"vdv-complexTypes.xsd"/>
8 <xs:element name=
"name" type=
"string32"/>
9 <xs:element name=
"qualification" type=
"string255"/>
10 <xs:element name=
"born" type=
"date"/>
11 <xs:element name=
"dead" type=
"date"/>
12 <xs:element name=
"isbn" type=
"isbn"/>
14 <xs:attribute name=
"id" type=
"xs:ID"/>
15 <xs:attribute name=
"available" type=
"xs:boolean"/>
16 <xs:attribute name=
"lang" type=
"supportedLanguages"/>
19 <xs:element name=
"title">
22 <xs:extension base=
"string255">
23 <xs:attribute ref=
"lang"/>
29 <xs:element name=
"library">
32 <xs:element ref=
"book" maxOccurs=
"unbounded"/>
37 <xs:element name=
"book">
40 <xs:restriction base=
"bookTmp">
42 <xs:element ref=
"isbn"/>
43 <xs:element ref=
"title"/>
44 <xs:element ref=
"author" minOccurs=
"0" maxOccurs=
"unbounded"/>
45 <xs:element ref=
"character" minOccurs=
"0" maxOccurs=
"unbounded"/>
47 <xs:attribute name=
"id" type=
"bookID"/>
48 <xs:attribute ref=
"available"/>
54 <xs:element name=
"author">
57 <xs:restriction base=
"personType">
59 <xs:element ref=
"name"/>
60 <xs:element ref=
"born"/>
61 <xs:element ref=
"dead" minOccurs=
"0"/>
63 <xs:attribute ref=
"id"/>
70 <xs:element name=
"character">
73 <xs:restriction base=
"personType">
75 <xs:element ref=
"name"/>
76 <xs:element ref=
"born"/>
77 <xs:element ref=
"qualification"/>
79 <xs:attribute ref=
"id"/>