File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / test / schemas / vdv-first5_0.xsd
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:37:59 2012 UTC (12 years, 5 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2

<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /usr/local/www/users/anoncvs/cvs/embedaddon/libxml2/test/schemas/vdv-first5_0.xsd,v 1.1.1.1 2012/02/21 23:37:59 misho Exp $ -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:include schemaLocation="vdv-simpleTypes.xsd"/>
<xs:include schemaLocation="vdv-complexTypes.xsd"/>

	<xs:element name="name" type="string32"/>
	<xs:element name="qualification" type="string255"/>
	<xs:element name="born" type="date"/>
	<xs:element name="dead" type="date"/>
	<xs:element name="isbn" type="isbn"/>
	
	<xs:attribute name="id" type="xs:ID"/>
	<xs:attribute name="available" type="xs:boolean"/>
	<xs:attribute name="lang" type="supportedLanguages"/>

		
	<xs:element name="title">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="string255">
					<xs:attribute ref="lang"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="library">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="book" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="book">
					<xs:complexType>
									<xs:complexContent>
													<xs:restriction base="bookTmp">
			<xs:sequence>
				<xs:element ref="isbn"/>
				<xs:element ref="title"/>
				<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="character" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="id" type="bookID"/>
			<xs:attribute ref="available"/>
													</xs:restriction>
									</xs:complexContent>
		</xs:complexType>
	</xs:element>

	<xs:element name="author">
					<xs:complexType>
									<xs:complexContent>
													<xs:restriction base="personType">
			<xs:sequence>
				<xs:element ref="name"/>
				<xs:element ref="born"/>
				<xs:element ref="dead" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute ref="id"/>
													</xs:restriction>
									</xs:complexContent>
		</xs:complexType>
	</xs:element>
	
	
	<xs:element name="character">
		<xs:complexType>
									<xs:complexContent>
													<xs:restriction base="personType">
			<xs:sequence>
				<xs:element ref="name"/>
				<xs:element ref="born"/>
				<xs:element ref="qualification"/>
			</xs:sequence>
			<xs:attribute ref="id"/>
													</xs:restriction>
									</xs:complexContent>
		</xs:complexType>
	</xs:element>
	
</xs:schema>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>