aboutsummaryrefslogtreecommitdiffstats
path: root/test/schemas/vdv-simpleTypes.xsd
blob: 79f95fddfc9daa18a1c57e74a89b5cc8dcac5572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /home/cvsroot/w3c-xml-schema/user/examples/simpleTypes.xsd,v 1.1 2001/11/26 13:27:08 vdv Exp $ -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

	<xs:simpleType name="string255">
		<xs:restriction base="xs:token">
			<xs:maxLength value="255"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string32">
		<xs:restriction base="xs:token">
			<xs:maxLength value="32"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="isbn">
		<xs:restriction base="xs:unsignedLong">
			<xs:totalDigits value="10"/>
			<xs:pattern value="\d{10}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="bookID">
		<xs:restriction base="xs:ID">
			<xs:pattern value="b\d{10}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="supportedLanguages">
		<xs:restriction base="xs:language">
			<xs:enumeration value="en"/>
			<xs:enumeration value="es"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="date">
		<xs:restriction base="xs:date">
						<xs:pattern value="[^:Z]*"/>
		</xs:restriction>
	</xs:simpleType>

</xs:schema>