-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnw-TakeoffProperties-10.0.xsd
122 lines (113 loc) · 4.46 KB
/
nw-TakeoffProperties-10.0.xsd
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
118
119
120
121
122
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--Simple types-->
<xs:simpleType name="nametype">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="propertynametype">
<xs:restriction base="xs:string">
<xs:pattern value="Model[a-zA-Z](([a-zA-Z0-9])*)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="unitsgrouptype">
<xs:restriction base="xs:string">
<xs:enumeration value="any"/>
<xs:enumeration value="dimensionless" />
<xs:enumeration value="length"/>
<xs:enumeration value="area" />
<xs:enumeration value="volume"/>
<xs:enumeration value="angle"/>
<xs:enumeration value="time" />
<xs:enumeration value="currency"/>
<xs:enumeration value="weight"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="selectedtype">
<xs:restriction base="xs:integer">
<xs:pattern value="0|1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="unitstype">
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
<xs:enumeration value="count"/>
<xs:enumeration value="currency"/>
<xs:enumeration value="second"/>
<xs:enumeration value="minute"/>
<xs:enumeration value="hour"/>
<xs:enumeration value="day"/>
<xs:enumeration value="week"/>
<xs:enumeration value="month"/>
<xs:enumeration value="year"/>
<xs:enumeration value="meter"/>
<xs:enumeration value="centimeter"/>
<xs:enumeration value="millimeter"/>
<xs:enumeration value="feet"/>
<xs:enumeration value="inch"/>
<xs:enumeration value="yard"/>
<xs:enumeration value="mile"/>
<xs:enumeration value="kilometer"/>
<xs:enumeration value="micrometer"/>
<xs:enumeration value="mil"/>
<xs:enumeration value="microinch"/>
<xs:enumeration value="squaremeter"/>
<xs:enumeration value="squarecentimeter"/>
<xs:enumeration value="squaremillimeter"/>
<xs:enumeration value="squarefeet"/>
<xs:enumeration value="squareinch"/>
<xs:enumeration value="squareyard"/>
<xs:enumeration value="squaremile"/>
<xs:enumeration value="squarekilometer"/>
<xs:enumeration value="squaremicrometer"/>
<xs:enumeration value="squaremil"/>
<xs:enumeration value="cubicmeter"/>
<xs:enumeration value="cubiccentimeter"/>
<xs:enumeration value="cubicmillimeter"/>
<xs:enumeration value="cubicfeet"/>
<xs:enumeration value="cubicinch"/>
<xs:enumeration value="cubicyard"/>
<xs:enumeration value="cubicmile"/>
<xs:enumeration value="cubicmil"/>
<xs:enumeration value="gallon"/>
<xs:enumeration value="degree"/>
<xs:enumeration value="radian"/>
<xs:enumeration value="kilogram"/>
<xs:enumeration value="gram"/>
<xs:enumeration value="pound"/>
<xs:enumeration value="ounce"/>
<xs:enumeration value="metricton"/>
<xs:enumeration value="ton"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Propertytype">
<xs:sequence>
<xs:element name="UnitsGroup" type="unitsgrouptype"/>
<xs:element name="ImperialUnits" type="unitstype"/>
<xs:element name="MetricUnits" type="unitstype"/>
<xs:element name="Selected" type="selectedtype"/>
</xs:sequence>
<xs:attribute name="Name" type="propertynametype" use="required" />
</xs:complexType>
<xs:complexType name="PropertyGrouptype">
<xs:sequence>
<xs:element name="Property" type="Propertytype" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Name" type="nametype" use="required" />
</xs:complexType>
<xs:complexType name="TakeoffPropertiestype">
<xs:sequence>
<xs:element name="PropertyGroup" type="PropertyGrouptype" minOccurs="1" maxOccurs="unbounded">
<xs:unique name="PropertyNameDefinition">
<xs:selector xpath="Property" />
<xs:field xpath="@Name" />
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="TakeoffProperties" type="TakeoffPropertiestype">
<xs:unique name="PropertyGroupNameDefinition">
<xs:selector xpath="PropertyGroup" />
<xs:field xpath="@Name" />
</xs:unique>
</xs:element>
</xs:schema>