Annotation of embedaddon/libxml2/test/schemas/vdv-complexTypes.xsd, revision 1.1.1.1
1.1 misho 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">
4:
5:
6: <xs:complexType name="elementWithID">
7: <xs:attribute ref="id"/>
8: </xs:complexType>
9: <xs:complexType name="bookTmp">
10: <xs:complexContent>
11: <xs:extension base="elementWithID">
12: <xs:sequence>
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"/>
17: </xs:sequence>
18: <xs:attribute ref="available"/>
19: </xs:extension>
20: </xs:complexContent>
21: </xs:complexType>
22:
23: <xs:complexType name="personType">
24: <xs:complexContent>
25: <xs:extension base="elementWithID">
26: <xs:sequence>
27: <xs:element ref="name"/>
28: <xs:element ref="born"/>
29: <xs:element ref="dead" minOccurs="0"/>
30: <xs:element ref="qualification" minOccurs="0"/>
31: </xs:sequence>
32: </xs:extension>
33: </xs:complexContent>
34: </xs:complexType>
35:
36:
37: </xs:schema>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>