|
2 | 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
3 | 3 | <xs:include schemaLocation="package_common.xsd"/>
|
4 | 4 |
|
| 5 | + <xs:complexType name="ConditionalType"> |
| 6 | + <xs:simpleContent> |
| 7 | + <xs:extension base="xs:token"> |
| 8 | + <xs:attribute name="condition" use="optional"> |
| 9 | + <xs:simpleType> |
| 10 | + <xs:restriction base="xs:token"> |
| 11 | + <xs:pattern value="[$A-Za-z0-9_\s<>=]*"/> |
| 12 | + </xs:restriction> |
| 13 | + </xs:simpleType> |
| 14 | + </xs:attribute> |
| 15 | + </xs:extension> |
| 16 | + </xs:simpleContent> |
| 17 | + </xs:complexType> |
| 18 | + |
| 19 | + <xs:complexType name="DependencyType"> |
| 20 | + <xs:simpleContent> |
| 21 | + <xs:extension base="xs:token"> |
| 22 | + <!-- The dependency must have a version less then the specified limit. --> |
| 23 | + <xs:attribute name="version_lt" type="VersionLimitType" use="optional"/> |
| 24 | + <!-- The dependency must have a version less then or equal to the specified limit. --> |
| 25 | + <xs:attribute name="version_lte" type="VersionLimitType" use="optional"/> |
| 26 | + <!-- The dependency must have a version equal to the specified limit. --> |
| 27 | + <xs:attribute name="version_eq" type="VersionLimitType" use="optional"/> |
| 28 | + <!-- The dependency must have a version greater then or equal to the specified limit. --> |
| 29 | + <xs:attribute name="version_gte" type="VersionLimitType" use="optional"/> |
| 30 | + <!-- The dependency must have a version greater then the specified limit. --> |
| 31 | + <xs:attribute name="version_gt" type="VersionLimitType" use="optional"/> |
| 32 | + <xs:attribute name="condition" use="optional"> |
| 33 | + <xs:simpleType> |
| 34 | + <xs:restriction base="xs:token"> |
| 35 | + <xs:pattern value="[$A-Za-z0-9_\s<>=]*"/> |
| 36 | + </xs:restriction> |
| 37 | + </xs:simpleType> |
| 38 | + </xs:attribute> |
| 39 | + </xs:extension> |
| 40 | + </xs:simpleContent> |
| 41 | + </xs:complexType> |
| 42 | + |
5 | 43 | <xs:complexType name="VersionWithOptionalCompatibilityType">
|
6 | 44 | <xs:simpleContent>
|
7 | 45 | <xs:extension base="VersionType">
|
|
56 | 94 | <xs:element type="DependencyType" name="replace"/>
|
57 | 95 | </xs:choice>
|
58 | 96 |
|
59 |
| - <xs:element name="group_depend" type="xs:token" minOccurs="0" maxOccurs="unbounded"/> |
60 |
| - <xs:element name="member_of_group" type="xs:token" minOccurs="0" maxOccurs="unbounded"/> |
| 97 | + <xs:element name="group_depend" type="ConditionalType" minOccurs="0" maxOccurs="unbounded"/> |
| 98 | + <xs:element name="member_of_group" type="ConditionalType" minOccurs="0" maxOccurs="unbounded"/> |
61 | 99 |
|
62 | 100 | <xs:element name="export" type="ExportType" minOccurs="0" maxOccurs="1"/>
|
63 | 101 | </xs:sequence>
|
|
0 commit comments