File: types.xsd

package info (click to toggle)
foomatic-db 20161201-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 403,348 kB
  • ctags: 24
  • sloc: xml: 280,777; sh: 153; makefile: 114; python: 8
file content (117 lines) | stat: -rw-r--r-- 3,804 bytes parent folder | download | duplicates (6)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
			elementFormDefault="qualified">
	<xsd:annotation>
		<xsd:documentation>
			This file is an effort to isolate the most commonly used data-types used 
			in describing elements of the foomatic XML schema. This file in included 
			in the other XML schemas so that changes made to these data-types are 
			instantly reflected in the main schema files.
		</xsd:documentation>
	</xsd:annotation>
	
	<!-- <simple_types> -->
	<xsd:simpleType name="driverID" final="#all">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="driver/[a-zA-Z0-9]([a-zA-Z0-9_\.-])*"></xsd:pattern>
		</xsd:restriction>
	</xsd:simpleType>
	
	<xsd:simpleType name="printerID" final="#all">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="printer/[a-zA-Z0-9]([a-zA-Z0-9_\+-])*" />
		</xsd:restriction>
	</xsd:simpleType>
	
	<xsd:simpleType name="ratingsValue">
		<xsd:restriction base="xsd:int">
			<xsd:minInclusive value="0" />
			<xsd:maxInclusive value="100" />
		</xsd:restriction>
	</xsd:simpleType>
	
	<xsd:simpleType name="lengthUnits">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="pt" />
			<xsd:enumeration value="in" />
			<xsd:enumeration value="mm" />
			<xsd:enumeration value="cm" />
		</xsd:restriction>
	</xsd:simpleType>
	<!-- </simple_types> -->
	
	<!-- <complex_types> -->
	<xsd:complexType name="i18nString">
		<xsd:all>
			<xsd:element name="en" minOccurs="0" maxOccurs="1">
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="xsd:string">
							<xsd:attribute name="url" type="xsd:string" use="optional" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="fr" minOccurs="0" maxOccurs="1">
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="xsd:string">
							<xsd:attribute name="url" type="xsd:string" use="optional" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="de" minOccurs="0" maxOccurs="1">
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="xsd:string">
							<xsd:attribute name="url" type="xsd:string" use="optional" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ja" minOccurs="0" maxOccurs="1">
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="xsd:string">
							<xsd:attribute name="url" type="xsd:string" use="optional" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>
		</xsd:all>
	</xsd:complexType>
	
	<xsd:complexType name="marginValues">
		<xsd:all>
			<xsd:element name="unit" type="lengthUnits" minOccurs="0" />
			<xsd:element name="absolute" minOccurs="0">
				<xsd:complexType />
			</xsd:element>
			<xsd:element name="relative" minOccurs="0">
				<xsd:complexType />
			</xsd:element>
			<xsd:element name="top" type="xsd:float" minOccurs="0" />
			<xsd:element name="left" type="xsd:float" minOccurs="0" />
			<xsd:element name="right" type="xsd:float" minOccurs="0" />
			<xsd:element name="bottom" type="xsd:float" minOccurs="0" />
		</xsd:all>
	</xsd:complexType>
	
	<xsd:complexType name="marginsDefinition">
		<xsd:sequence>
			<xsd:element name="general" type="marginValues" minOccurs="0" />
			<xsd:element name="exception" minOccurs="0" maxOccurs="unbounded">
				<xsd:complexType>
					<xsd:complexContent>
						<xsd:extension base="marginValues">
							<xsd:attribute name="PageSize" type="xsd:string" use="required" />
						</xsd:extension>
					</xsd:complexContent>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- </complex_types> -->
	
</xsd:schema>