1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- $Header: /home/cvsroot/w3c-xml-schema/user/examples/complexTypes.xsd,v 1.1 2001/11/26 13:27:07 vdv Exp $ -->
3 <xs:schema xmlns:
xs=
"http://www.w3.org/2001/XMLSchema">
6 <xs:complexType name=
"elementWithID">
7 <xs:attribute ref=
"id"/>
9 <xs:complexType name=
"bookTmp">
11 <xs:extension base=
"elementWithID">
13 <xs:element ref=
"isbn"/>
14 <xs:element ref=
"title"/>
15 <xs:element ref=
"author" minOccurs=
"0" maxOccurs=
"unbounded"/>
16 <xs:element ref=
"character" minOccurs=
"0" maxOccurs=
"unbounded"/>
18 <xs:attribute ref=
"available"/>
23 <xs:complexType name=
"personType">
25 <xs:extension base=
"elementWithID">
27 <xs:element ref=
"name"/>
28 <xs:element ref=
"born"/>
29 <xs:element ref=
"dead" minOccurs=
"0"/>
30 <xs:element ref=
"qualification" minOccurs=
"0"/>