VRBL-DPA-RS-1p0-19

Basic Info

Rule Within an Attachment Group, exactly one of either Attachment File OR Attachment External Reference URI MUST be present, but not both.
Context /ubl:DespatchAdvice/cac:AdditionalDocumentReference
Pattern vrbl-despatchadvice-rs-1p0
Severity fatal

Implementation

not(cac:Attachment)
or
(
	(cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cac:ExternalReference/cbc:URI))
	or
	(not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject) and cac:Attachment/cac:ExternalReference/cbc:URI)
)