File: units.xsd

package info (click to toggle)
python-xsdata 24.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,936 kB
  • sloc: python: 29,257; xml: 404; makefile: 27; sh: 6
file content (23 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema targetNamespace="http://domain.org/schema/model/units"
	xmlns="http://domain.org/schema/model/units"
	xmlns:xs="http://www.w3.org/2001/XMLSchema">

	<xs:simpleType name="stdUnit">
		<xs:restriction base="xs:string">
			<xs:enumeration value="m"/>
			<xs:enumeration value="kg"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="miscUnit">
		<xs:restriction base="xs:string">
			<xs:enumeration value="%"/>
			<xs:enumeration value="NA"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="unit">
		<xs:union memberTypes="stdUnit miscUnit"/>
	</xs:simpleType>
</xs:schema>