|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <pattern id="EFORMS-stage-1-preliminary" xmlns="http://purl.oclc.org/dsdl/schematron">
|
3 |
| - <rule context="/"> |
4 |
| - <assert role="error" test="count(*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeSubType/cbc:SubTypeCode) > 0">The OPP-070 Notice Subtype is mandatory.</assert> |
5 |
| - </rule> |
6 |
| - <rule context="/*[(/*/cbc:NoticeTypeCode/text()=('pmc', 'pin-only', 'pin-rtl', 'pin-cfc-standard', 'pin-cfc-social', 'qu-sy', 'cn-standard', 'cn-social', 'subco', 'cn-desg', 'veat', 'can-standard', 'can-social', 'can-desg', 'can-modif', 'cc'))]"> |
7 |
| - <assert test="exists(cac:ProcurementProjectLot)">The mandatory child element cac:ProcurementProjectLot is missing in context /*[(/*/cbc:NoticeTypeCode/text()=('pmc', 'pin-only', 'pin-rtl', 'pin-cfc-standard', 'pin-cfc-social', 'qu-sy', 'cn-standard', 'cn-social', 'subco', 'cn-desg', 'veat', 'can-standard', 'can-social', 'can-desg', 'can-modif', 'cc'))].</assert> |
8 |
| - </rule> |
9 |
| - <rule context="/*[/*/cbc:NoticeTypeCode/text()='pin-buyer']"> |
10 |
| - <assert test="count(cac:ProcurementProjectLot) = 0">The prohibited child element cac:ProcurementProjectLot is present in context /*[/*/cbc:NoticeTypeCode/text()='pin-buyer'].</assert> |
11 |
| - </rule> |
12 |
| - <rule context="/*/cac:ProcurementProjectLot/cac:TenderingProcess[/*/cac:TenderingProcess/cbc:ProcedureCode/text() = ('restricted', 'neg-w-call', 'comp-dial', 'innovation', 'oth-mult')][/*/cbc:NoticeTypeCode/text()='cn-standard'][/*/cbc:RegulatoryDomain/text()='32014L0024']"> |
13 |
| - <assert test="exists(cac:EconomicOperatorShortList)">The mandatory child element cac:EconomicOperatorShortList is missing in context /*/cac:ProcurementProjectLot/cac:TenderingProcess[/*/cac:TenderingProcess/cbc:ProcedureCode/text() = ('restricted', 'neg-w-call', 'comp-dial', 'innovation', 'oth-mult')][/*/cbc:NoticeTypeCode/text()='cn-standard'][/*/cbc:RegulatoryDomain/text()='32014L0024'].</assert> |
14 |
| - </rule> |
15 |
| - <rule context="/*/cac:ProcurementProjectLot/cac:TenderingProcess[/*/cac:TenderingProcess/cbc:ProcedureCode/text() = ('oth-single', 'neg-wo-call', 'open')]"> |
16 |
| - <assert test="count(cac:EconomicOperatorShortList) = 0">The prohibited child element cac:EconomicOperatorShortList is present in context /*/cac:ProcurementProjectLot/cac:TenderingProcess[/*/cac:TenderingProcess/cbc:ProcedureCode/text() = ('oth-single', 'neg-wo-call', 'open')].</assert> |
| 3 | + <rule context="/*"> |
| 4 | + <assert role="ERROR" test="count(ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeSubType/cbc:SubTypeCode) > 0">The OPP-070 Notice Subtype is mandatory.</assert> |
| 5 | + <assert role="ERROR" test="(cbc:NoticeTypeCode/text() = ('pin-buyer', 'brin-eeig', 'brin-ecs') and count(cac:ProcurementProjectLot) = 0) or (not(cbc:NoticeTypeCode/text() = ('pin-buyer', 'brin-eeig', 'brin-ecs')) and count(cac:ProcurementProjectLot) > 0)">The element cac:ProcurementProjectLot must not be present in 'pin-buyer', 'brin-eeig' and 'brin-ecs' notices, and is mandatory in other notices.</assert> |
17 | 6 | </rule>
|
18 | 7 | <rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotResult[/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeSubType/cbc:SubTypeCode/text() = ('29', '30', '31', '32', '33', '34', '35', '36', '37')]">
|
19 |
| - <assert test="exists(efac:ReceivedSubmissionsStatistics)">The mandatory information on received submissions is missing.</assert> |
| 8 | + <assert role="ERROR" test="exists(efac:ReceivedSubmissionsStatistics)">The mandatory information on received submissions is missing.</assert> |
20 | 9 | </rule>
|
21 | 10 | <rule context="cac:ProcurementProjectLot/cbc:ID">
|
22 |
| - <assert test="@schemeName">The mandatory attribute @schemeName is missing.</assert> |
| 11 | + <assert role="ERROR" test="@schemeName">The mandatory attribute @schemeName is missing.</assert> |
23 | 12 | </rule>
|
24 | 13 | <rule context="cac:ProcurementProjectLot/cbc:ID/@schemeName">
|
25 |
| - <assert test="contains('PartLotLotsGroup', concat('',.,''))">The specified scheme name for the lot identifier is not valid.</assert> |
| 14 | + <assert role="ERROR" test="contains('PartLotLotsGroup', concat('',.,''))">The specified scheme name for the lot identifier is not valid.</assert> |
26 | 15 | </rule>
|
27 | 16 | <rule context="cbc:ActivityTypeCode">
|
28 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 17 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
29 | 18 | </rule>
|
30 | 19 | <rule context="cbc:AwardingCriterionTypeCode">
|
31 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 20 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
32 | 21 | </rule>
|
33 | 22 | <rule context="cbc:CalculationExpressionCode">
|
34 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 23 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
35 | 24 | </rule>
|
36 | 25 | <rule context="cbc:Code">
|
37 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 26 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
38 | 27 | </rule>
|
39 | 28 | <rule context="cbc:ContractingSystemTypeCode">
|
40 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 29 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
41 | 30 | </rule>
|
42 | 31 | <rule context="cbc:CountrySubentityCode">
|
43 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 32 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
44 | 33 | </rule>
|
45 | 34 | <rule context="cbc:CriterionTypeCode">
|
46 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 35 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
47 | 36 | </rule>
|
48 | 37 | <rule context="cbc:DescriptionCode">
|
49 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 38 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
50 | 39 | </rule>
|
51 | 40 | <rule context="cbc:DocumentTypeCode">
|
52 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 41 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
53 | 42 | </rule>
|
54 | 43 | <rule context="cbc:ExecutionRequirementCode">
|
55 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 44 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
56 | 45 | </rule>
|
57 | 46 | <rule context="cbc:FundingProgramCode">
|
58 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 47 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
59 | 48 | </rule>
|
60 | 49 | <rule context="cbc:GuaranteeTypeCode">
|
61 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 50 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
62 | 51 | </rule>
|
63 | 52 | <rule context="cbc:IndustryClassificationCode">
|
64 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 53 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
65 | 54 | </rule>
|
66 | 55 | <rule context="cbc:ItemClassificationCode">
|
67 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 56 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
68 | 57 | </rule>
|
69 | 58 | <rule context="cbc:NoticeTypeCode">
|
70 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 59 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
71 | 60 | </rule>
|
72 | 61 | <rule context="cbc:PartPresentationCode">
|
73 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 62 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
74 | 63 | </rule>
|
75 | 64 | <rule context="cbc:PartyTypeCode">
|
76 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 65 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
77 | 66 | </rule>
|
78 | 67 | <rule context="cbc:ProcedureCode">
|
79 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 68 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
80 | 69 | </rule>
|
81 | 70 | <rule context="cbc:ProcessReasonCode">
|
82 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 71 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
83 | 72 | </rule>
|
84 | 73 | <rule context="cbc:ProcurementTypeCode">
|
85 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 74 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
86 | 75 | </rule>
|
87 | 76 | <rule context="cbc:RequiredCurriculaCode">
|
88 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 77 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
89 | 78 | </rule>
|
90 | 79 | <rule context="cbc:SubcontractingConditionsCode">
|
91 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 80 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
92 | 81 | </rule>
|
93 | 82 | <rule context="cbc:SubmissionMethodCode">
|
94 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 83 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
95 | 84 | </rule>
|
96 | 85 | <rule context="cbc:TendererRequirementTypeCode">
|
97 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 86 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
98 | 87 | </rule>
|
99 | 88 | <rule context="cbc:TenderResultCode">
|
100 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 89 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
101 | 90 | </rule>
|
102 | 91 | <rule context="cbc:VariantConstraintCode">
|
103 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 92 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
104 | 93 | </rule>
|
105 |
| - <rule context="efbc:ReasonCode"> |
106 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 94 | + <rule context="cbc:ReasonCode"> |
| 95 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
107 | 96 | </rule>
|
108 | 97 | <rule context="efbc:StatisticsCode">
|
109 |
| - <assert test="@listName">The mandatory attribute @listName is missing.</assert> |
| 98 | + <assert role="ERROR" test="@listName">The mandatory attribute @listName is missing.</assert> |
110 | 99 | </rule>
|
111 | 100 | </pattern>
|
0 commit comments