VRBL-STM-PMT-CORE-11

Basic Info

Rule The Statement Line Invoice Document Reference Extensions Group must not contain VRBL extensions of other elements.
Context /ubl:Statement/cac:StatementLine/cac:BillingReference/cac:InvoiceDocumentReference/cec:UBLExtensions
Pattern vrbl-payments-core
Severity fatal

Used Template: UBLExtensions_2

Implementation

count(
	cec:UBLExtension/cec:ExtensionContent/*[
		namespace-uri() = 'urn:vertexinc:vrbl:ExtensionComponent:1'
		and
		local-name() != concat(local-name(../../../..), 'Extension')
	]
)
=
0