uwproj.xsd

Sun, 17 Sep 2023 12:40:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Sep 2023 12:40:46 +0200
branch
configure-evo
changeset 62
a8af19ddbfec
parent 46
096f3105b3b1
child 65
6db50c6df6e3
permissions
-rw-r--r--

Close Branch

29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 xmlns="http://unixwork.de/uwproj"
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 targetNamespace="http://unixwork.de/uwproj"
41
75ee588d5d9e some more code cleanup
Mike Becker <universe@uap-core.de>
parents: 29
diff changeset
5 elementFormDefault="qualified"
75ee588d5d9e some more code cleanup
Mike Becker <universe@uap-core.de>
parents: 29
diff changeset
6 version="0.1"
75ee588d5d9e some more code cleanup
Mike Becker <universe@uap-core.de>
parents: 29
diff changeset
7 >
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 <xs:element name="project" type="ProjectType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 <xs:complexType name="ProjectType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 <xs:element name="config" type="ConfigType" minOccurs="0"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 <xs:element name="dependency" type="DependencyType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 <xs:element name="target" type="TargetType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 <xs:complexType name="ConfigType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 <xs:element name="var" type="ConfigVarType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 <xs:complexType name="ConfigVarType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 <xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 <xs:extension base="xs:string">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 <xs:attribute name="name" type="xs:string" use="required"/>
43
741a0d9efa47 replace type="exec" with exec="true" - fixes #295
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
28 <xs:attribute name="exec" type="xs:boolean" default="false"/>
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 </xs:extension>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 </xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32
46
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
33 <xs:complexType name="PkgConfigType">
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
34 <xs:simpleContent>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
35 <xs:extension base="xs:string">
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
36 <xs:attribute name="atleast" type="xs:string"/>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
37 <xs:attribute name="exact" type="xs:string"/>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
38 <xs:attribute name="max" type="xs:string"/>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
39 </xs:extension>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
40 </xs:simpleContent>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
41 </xs:complexType>
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
42
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 <xs:complexType name="DependencyType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 <xs:element name="lang" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 <xs:element name="cflags" type="FlagsType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 <xs:element name="ldflags" type="FlagsType"/>
46
096f3105b3b1 add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents: 44
diff changeset
48 <xs:element name="pkgconfig" type="PkgConfigType"/>
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 <xs:element name="test" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 <xs:element name="make" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 <xs:attribute name="name" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 <xs:attribute name="platform" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 <xs:attribute name="not" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57 <xs:complexType name="FlagsType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 <xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 <xs:extension base="xs:string">
43
741a0d9efa47 replace type="exec" with exec="true" - fixes #295
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
60 <xs:attribute name="exec" type="xs:boolean" default="false"/>
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 </xs:extension>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 </xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 <xs:complexType name="TargetType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 <xs:element name="feature" type="FeatureType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 <xs:element name="option" type="OptionType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 <xs:element name="define" type="DefineType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 <xs:element name="dependencies" type="DependenciesType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 <xs:element name="alldependencies">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 <xs:complexType/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
73 </xs:element>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75 <xs:attribute name="name" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 <xs:complexType name="FeatureType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 <xs:group ref="TargetDataGroup"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 <xs:attribute name="arg" type="xs:string"/>
44
1d963f2c7e91 make FeatureType.default an xs:boolean - fixes #296
Mike Becker <universe@uap-core.de>
parents: 43
diff changeset
84 <xs:attribute name="default" type="xs:boolean" default="false"/>
29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87 <xs:complexType name="OptionType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
88 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
89 <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90 <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
92 <xs:attribute name="arg" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
93 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
95 <xs:complexType name="OptionValueType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97 <xs:group ref="TargetDataGroup"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
98 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
99 <xs:attribute name="str" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
100 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
101
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 <xs:complexType name="OptionDefaultType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103 <xs:attribute name="value" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 <xs:attribute name="platform" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 <xs:group name="TargetDataGroup">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 <xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109 <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 <xs:element name="make" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113 </xs:group>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 <xs:complexType name="DefineType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
116 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
117 <xs:attribute name="value" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
119
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
120 <xs:simpleType name="DependenciesType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
121 <xs:restriction base="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 </xs:simpleType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
123 </xs:schema>

mercurial