Skip to content

Commit 7364846

Browse files
Pracc dev t019 (#258)
* T019 bugfix * Generated by github actions * T019 example value update * Generated by github actions * Contracing party * Generated by github actions * ContractingParty * Contracting party * Generated by github actions * Removed reduntant rule PEPPOL-T019-R059 * Generated by github actions --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4a57036 commit 7364846

File tree

14 files changed

+254
-142
lines changed

14 files changed

+254
-142
lines changed

rules/examples/T019/Qualification-doc.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</cac:Country>
5252
</cac:PostalAddress>
5353
<cac:PartyLegalEntity> <!--.-->
54-
<cbc:CompanyLegalFormCode>LegalForm</cbc:CompanyLegalFormCode>
54+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
5555
</cac:PartyLegalEntity>
5656
<cac:Contact> <!--.-->
5757
<cbc:Name>ContactName</cbc:Name>
@@ -66,7 +66,7 @@
6666
<!-- end::MainQualifyingParty[] -->
6767
<cbc:EndpointID schemeID="9946">502352433</cbc:EndpointID> <!--.-->
6868
<cac:PartyIdentification> <!--.-->
69-
<cbc:ID schemeID="0088">7323412337651</cbc:ID>
69+
<cbc:ID schemeID="0088">7323412337650</cbc:ID>
7070
</cac:PartyIdentification>
7171
<cac:PartyName> <!--.-->
7272
<cbc:Name>Dutch Plants Ltd</cbc:Name>
@@ -81,7 +81,7 @@
8181
</cac:Country>
8282
</cac:PostalAddress>
8383
<cac:PartyLegalEntity> <!--.-->
84-
<cbc:CompanyLegalFormCode>LegalForm</cbc:CompanyLegalFormCode>
84+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
8585
</cac:PartyLegalEntity>
8686
<cac:Contact> <!--.-->
8787
<cbc:Name>ContactName</cbc:Name>
@@ -131,6 +131,7 @@
131131
<!-- tag::DocumentTypeCode[] -->
132132
<cbc:DocumentTypeCode listID="UNCL1001">311</cbc:DocumentTypeCode> <!--.-->
133133
<!-- end::DocumentTypeCode[] -->
134+
<cbc:XPath>/TendererQualification/cbc:ContractFolderID</cbc:XPath>
134135
<cbc:LocaleCode listID="ISO639-1">NL</cbc:LocaleCode>
135136
<cbc:VersionID>1</cbc:VersionID>
136137
<cbc:DocumentDescription>Call for Tenders reference</cbc:DocumentDescription>

rules/examples/T019/Qualification_full.xml

Lines changed: 58 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
<cbc:CustomizationID>urn:fdc:peppol.eu:prac:trns:t019:1</cbc:CustomizationID>
77
<cbc:ProfileID>urn:fdc:peppol.eu:prac:bis:p011</cbc:ProfileID>
88
<cbc:ID schemeURI="urn:uuid">123e4567-e89b-12d3-a456-426614174000</cbc:ID>
9-
<cbc:ContractFolderID>ID-001</cbc:ContractFolderID>
10-
<cbc:IssueDate>2026-03-06</cbc:IssueDate>
11-
<cbc:IssueTime>10:00:00</cbc:IssueTime>
9+
<cbc:ContractFolderID>765a9937-16d5-4513-92b4-cc9800925951</cbc:ContractFolderID>
10+
<cbc:IssueDate>2020-05-10</cbc:IssueDate>
11+
<cbc:IssueTime>14:34:27+01:00</cbc:IssueTime>
12+
<cbc:VersionID>1</cbc:VersionID>
1213
<cac:TendererPartyQualification>
1314
<cac:InterestedProcurementProjectLot>
1415
<cbc:ID>ID-001</cbc:ID>
@@ -20,15 +21,27 @@
2021
<cbc:ID schemeID="0204">991-1234512345-06</cbc:ID>
2122
</cac:PartyIdentification>
2223
<cac:PartyName>
23-
<cbc:Name>Example</cbc:Name>
24+
<cbc:Name>Dutch Tulips Ltd</cbc:Name>
2425
</cac:PartyName>
2526
<cac:PostalAddress>
27+
<cbc:StreetName>Amsterdam Street Name 1</cbc:StreetName>
28+
<cbc:AdditionalStreetName>Building A</cbc:AdditionalStreetName>
29+
<cbc:CityName>Amsterdam</cbc:CityName>
30+
<cbc:PostalZone>1092</cbc:PostalZone>
31+
<cbc:CountrySubentity>North Holland</cbc:CountrySubentity>
2632
<cac:Country>
27-
<cbc:IdentificationCode listID="sample">311</cbc:IdentificationCode>
33+
<cbc:IdentificationCode listID="ISO3166">NL</cbc:IdentificationCode>
2834
</cac:Country>
2935
</cac:PostalAddress>
30-
<cac:PartyLegalEntity/>
31-
<cac:Contact/>
36+
<cac:PartyLegalEntity>
37+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
38+
</cac:PartyLegalEntity>
39+
<cac:Contact>
40+
<cbc:Name>ContactName</cbc:Name>
41+
<cbc:Telephone>Phone</cbc:Telephone>
42+
<cbc:Telefax>Fax</cbc:Telefax>
43+
<cbc:ElectronicMail>email@example.com</cbc:ElectronicMail>
44+
</cac:Contact>
3245
</cac:Party>
3346
</cac:MainQualifyingParty>
3447
<cac:AdditionalQualifyingParty>
@@ -38,29 +51,56 @@
3851
<cbc:ID schemeID="0204">991-1234512345-06</cbc:ID>
3952
</cac:PartyIdentification>
4053
<cac:PartyName>
41-
<cbc:Name>Example</cbc:Name>
54+
<cbc:Name>Dutch Plants Ltd</cbc:Name>
4255
</cac:PartyName>
4356
<cac:PostalAddress>
57+
<cbc:StreetName>The Hague Street Name 1</cbc:StreetName>
58+
<cbc:AdditionalStreetName>Building B</cbc:AdditionalStreetName>
59+
<cbc:CityName>The Hague</cbc:CityName>
60+
<cbc:PostalZone>2563</cbc:PostalZone>
61+
<cbc:CountrySubentity>South Holland</cbc:CountrySubentity>
4462
<cac:Country>
45-
<cbc:IdentificationCode listID="sample">311</cbc:IdentificationCode>
63+
<cbc:IdentificationCode listID="ISO3166">NL</cbc:IdentificationCode>
4664
</cac:Country>
4765
</cac:PostalAddress>
48-
<cac:PartyLegalEntity/>
49-
<cac:Contact/>
66+
<cac:PartyLegalEntity>
67+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
68+
</cac:PartyLegalEntity>
69+
<cac:Contact>
70+
<cbc:Name>ContactName</cbc:Name>
71+
<cbc:Telephone>Phone</cbc:Telephone>
72+
<cbc:Telefax>Fax</cbc:Telefax>
73+
<cbc:ElectronicMail>email@example.com</cbc:ElectronicMail>
74+
</cac:Contact>
5075
</cac:Party>
5176
</cac:AdditionalQualifyingParty>
5277
</cac:TendererPartyQualification>
78+
<cac:ContractingParty>
79+
<cac:Party>
80+
<cbc:EndpointID schemeID="9930">DE122268496</cbc:EndpointID>
81+
<cac:PartyIdentification>
82+
<cbc:ID schemeID="0204">991-1234512345-06</cbc:ID>
83+
</cac:PartyIdentification>
84+
<cac:PartyName>
85+
<cbc:Name>Contracting Party Inc</cbc:Name>
86+
</cac:PartyName>
87+
</cac:Party>
88+
</cac:ContractingParty>
5389
<cac:AdditionalDocumentReference>
54-
<cbc:ID>ID-001</cbc:ID>
55-
<cbc:DocumentTypeCode listID="UNCL1001">311</cbc:DocumentTypeCode>
56-
<cbc:XPath>Example</cbc:XPath>
57-
<cbc:DocumentDescription>Example</cbc:DocumentDescription>
90+
<cbc:ID>94f467cc-dc7c-464e-aea8-82522855979f</cbc:ID>
91+
<cbc:DocumentTypeCode listID="UNCL1001">916</cbc:DocumentTypeCode>
92+
<cbc:XPath>/TendererQualification/cac:TendererPartyQualification/cac:MainQualifyingParty/cac:Party[1]</cbc:XPath>
93+
<cbc:LocaleCode listID="ISO639-1">NL</cbc:LocaleCode>
94+
<cbc:VersionID>1</cbc:VersionID>
95+
<cbc:DocumentDescription>A qualification document of Dutch Tulips Ltd</cbc:DocumentDescription>
5896
<cac:Attachment>
5997
<cac:ExternalReference>
60-
<cbc:DocumentHash>Example</cbc:DocumentHash>
98+
<cbc:URI>243A177F-E4E9-4FC8-B97E-BB1A950DD8F8</cbc:URI>
99+
<cbc:DocumentHash>72182B98A9DAB9A553CCF161EA049D41337E51DFDF74DDC8AB7B68E7CFFB7D1B</cbc:DocumentHash>
61100
<cbc:HashAlgorithmMethod>http://www.w3.org/2001/04/xmlenc#sha256</cbc:HashAlgorithmMethod>
62-
<cbc:FileName>Example</cbc:FileName>
63-
<cbc:Description>Example</cbc:Description>
101+
<cbc:MimeCode>application/xml</cbc:MimeCode>
102+
<cbc:FileName>QualificationDutchTulips.pdf.p7m</cbc:FileName>
103+
<cbc:Description>size</cbc:Description>
64104
</cac:ExternalReference>
65105
</cac:Attachment>
66106
</cac:AdditionalDocumentReference>

rules/sch/parts/PEPPOL-M-T019.sch

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125

126126
<rule context="ubl:TendererQualification/cac:ContractingParty/cac:Party">
127127
<assert id="PEPPOL-T019-R049" flag="warning" test="count(./*)-count(./cac:PartyIdentification)-count(./cbc:EndpointID)-count(./cac:PartyName)= 0"><value-of select="$syntaxError"/>ContractingParty Party SHOULD NOT contain any elements but EndpointID, PartyIdentification, PartyName</assert>
128-
<assert id="PEPPOL-T019-R050" flag="warning" test="count(./cac:PartyName) &gt; 1"><value-of select="$syntaxError"/>ContractingParty/Party/PartyName SHOULD NOT be used more than once.</assert>
128+
<assert id="PEPPOL-T019-R050" flag="warning" test="count(./cac:PartyName) &lt;= 1"><value-of select="$syntaxError"/>ContractingParty/Party/PartyName SHOULD NOT be used more than once.</assert>
129129
<assert id="PEPPOL-T019-R051" flag="fatal" test="(./cac:PartyIdentification) and (./cbc:EndpointID)">The Contracting Authority MUST be identified by its party and endpoint identifiers.</assert>
130130
</rule>
131131

@@ -151,11 +151,6 @@
151151
<assert id="PEPPOL-T019-R058" flag="warning" test="not(./@*)"><value-of select="$syntaxError"/>Name SHOULD NOT contain any attributes.</assert>
152152
</rule>
153153

154-
<rule context="ubl:TendererQualification/cac:TendererPartyQualification/cac:MainQualifyingParty/cac:PostalAddress
155-
| ubl:TendererQualification/cac:TendererPartyQualification/cac:AdditionalQualifyingParty/cac:Party/cac:PostalAddress">
156-
<assert id="PEPPOL-T019-R059" flag="warning" test="count(./*)-count(./cbc:StreetName)-count(./cbc:CityName)-count(./cbc:PostalZone)-count(./cbc:CountrySubentity)-count(./cac:Country)=0"><value-of select="$syntaxError"/>PostalAddress SHOULD NOT contain any elements but StreetName, CityName, PostalZone, CountrySubentity, Country</assert>
157-
</rule>
158-
159154
<rule context="cbc:StreetName">
160155
<assert id="PEPPOL-T019-R060" flag="warning" test="not(./@*)"><value-of select="$syntaxError"/>StreetName SHOULD NOT contain any attributes</assert>
161156
</rule>

rules/snippets/T019/Qualification-doc.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
44
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6-
<!-- tag::UBL[] -->
6+
<!-- tag::UBL[] -->
77
<cbc:UBLVersionID>2.2</cbc:UBLVersionID>
88
<!-- end::UBL[] -->
99
<!-- tag::CustomizationID[] -->
@@ -51,7 +51,7 @@
5151
</cac:Country>
5252
</cac:PostalAddress>
5353
<cac:PartyLegalEntity> <!--.-->
54-
<cbc:CompanyLegalFormCode>LegalForm</cbc:CompanyLegalFormCode>
54+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
5555
</cac:PartyLegalEntity>
5656
<cac:Contact> <!--.-->
5757
<cbc:Name>ContactName</cbc:Name>
@@ -66,7 +66,7 @@
6666
<!-- end::MainQualifyingParty[] -->
6767
<cbc:EndpointID schemeID="9946">502352433</cbc:EndpointID> <!--.-->
6868
<cac:PartyIdentification> <!--.-->
69-
<cbc:ID schemeID="0088">7323412337651</cbc:ID>
69+
<cbc:ID schemeID="0088">7323412337650</cbc:ID>
7070
</cac:PartyIdentification>
7171
<cac:PartyName> <!--.-->
7272
<cbc:Name>Dutch Plants Ltd</cbc:Name>
@@ -81,7 +81,7 @@
8181
</cac:Country>
8282
</cac:PostalAddress>
8383
<cac:PartyLegalEntity> <!--.-->
84-
<cbc:CompanyLegalFormCode>LegalForm</cbc:CompanyLegalFormCode>
84+
<cbc:CompanyLegalForm>LegalForm</cbc:CompanyLegalForm>
8585
</cac:PartyLegalEntity>
8686
<cac:Contact> <!--.-->
8787
<cbc:Name>ContactName</cbc:Name>
@@ -131,6 +131,7 @@
131131
<!-- tag::DocumentTypeCode[] -->
132132
<cbc:DocumentTypeCode listID="UNCL1001">311</cbc:DocumentTypeCode> <!--.-->
133133
<!-- end::DocumentTypeCode[] -->
134+
<cbc:XPath>/TendererQualification/cbc:ContractFolderID</cbc:XPath>
134135
<cbc:LocaleCode listID="ISO639-1">NL</cbc:LocaleCode>
135136
<cbc:VersionID>1</cbc:VersionID>
136137
<cbc:DocumentDescription>Call for Tenders reference</cbc:DocumentDescription>

0 commit comments

Comments
 (0)