Skip to content

Commit d4361dd

Browse files
Bugfix rule R002
1 parent 8a651e3 commit d4361dd

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
flag="fatal">CustomizationID SHALL have the value 'urn:fdc:peppol.eu:logistics:trns:transport_execution_plan_request:1'.</assert>
77
</rule>
88

9-
<rule context="ubl:TransportExecutionPlanRequest">
9+
<rule context="cbc:ProfileID">
1010
<assert id="PEPPOL-T123-R002"
11-
test=" (ProfileID = ('urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1') or ('urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'))"
12-
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
11+
test="some $p in tokenize('urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1', '\s') satisfies $p = normalize-space(.)"
12+
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
1313
</rule>
1414

1515
<rule context="cac:Consignment">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</rule>
99
<rule context="cbc:ProfileID">
1010
<assert id="PEPPOL-T124-R002"
11-
test="(normalize-space(.) = 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1')"
11+
test="some $p in tokenize('urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_only:1' 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1', '\s') satisfies $p = normalize-space(.)"
1212
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:transport_execution_plan_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
1313
</rule>
1414
<rule context="cac:Consignment">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<rule context="cbc:ProfileID">
1010
<assert id="PEPPOL-T126-R002"
11-
test="(normalize-space(.) = 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1')"
12-
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
11+
test="some $p in tokenize('urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1', '\s') satisfies $p = normalize-space(.)"
12+
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
1313
</rule>
1414

1515
<rule context="ubl:TransportationStatusRequest/cbc:IssueTime">

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
test="(normalize-space(.) = 'urn:fdc:peppol.eu:logistics:trns:transportation_status:1')"
77
flag="fatal">Specification identifier SHALL start with the value 'urn:fdc:peppol.eu:logistics:trns:transportation_status:1'.</assert>
88
</rule>
9+
910
<rule context="cbc:ProfileID">
1011
<assert id="PEPPOL-T127-R002"
11-
test="(normalize-space(.) = 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:transportation_status_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1')"
12-
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' 'urn:fdc:peppol.eu:logistics:bis:transportation_status_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
12+
test="some $p in tokenize('urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' 'urn:fdc:peppol.eu:logistics:bis:transportation_status_only:1' 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1', '\s') satisfies $p = normalize-space(.)"
13+
flag="fatal">ProfileID SHALL have the value 'urn:fdc:peppol.eu:logistics:bis:transportation_status_w_request:1' or 'urn:fdc:peppol.eu:logistics:bis:transportation_status_only:1' or 'urn:fdc:peppol.eu:logistics:bis:advanced_transport_execution_plan:1'.</assert>
1314
</rule>
1415

1516
<rule context="ubl:TransportationStatus/cbc:IssueTime">

0 commit comments

Comments
 (0)