Skip to content

Commit 714d02a

Browse files
committed
Merge branch 'pracc-dev-T005' of https://github.com/OpenPEPPOL/logistics-bis into pracc-dev-T005
2 parents 43960b6 + 601625c commit 714d02a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

target/schematron/PEPPOL-T005.sch

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,15 @@
521521
</rule>
522522

523523
<rule context="ubl:Tender/cac:DocumentReference/cac:Attachment">
524-
<assert id="PEPPOL-T005-R023" flag="fatal" test="exists(cbc:DocumentHash)">[PEPPOL-T005-R023] An Attachment MUST have a document hash</assert>
524+
<assert id="PEPPOL-T005-R023"
525+
flag="fatal"
526+
test="exists(cac:ExternalReferencecbc:DocumentHash)">[PEPPOL-T005-R023] An Attachment MUST have a document hash</assert>
525527
<assert id="PEPPOL-T005-R024"
526528
flag="fatal"
527-
test="exists(cbc:HashAlgorithmMethod)">[PEPPOL-T005-R024] An Attachment MUST have a hash algorithm method</assert>
529+
test="exists(cac:ExternalReferencec/cbc:HashAlgorithmMethod)">[PEPPOL-T005-R024] An Attachment MUST have a hash algorithm method</assert>
528530
<assert id="PEPPOL-T005-R025"
529531
flag="fatal"
530-
test="normalize-space(cbc:HashAlgorithmMethod) = 'http://www.w3.org/2001/04/xmlenc#sha256'">[PEPPOL-T005-R025] Hash Algorithm MUST be SHA-256 (http://www.w3.org/2001/04/xmlenc#sha256)</assert>
532+
test="normalize-space(cac:ExternalReferencec/cbc:HashAlgorithmMethod) = 'http://www.w3.org/2001/04/xmlenc#sha256'">[PEPPOL-T005-R025] Hash Algorithm MUST be SHA-256 (http://www.w3.org/2001/04/xmlenc#sha256)</assert>
531533
</rule>
532534

533535
<rule context="ubl:Tender/cac:DocumentReference/cac:Attachment/cac:ExternalReference">

0 commit comments

Comments
 (0)