Message

[UBL-SR-47]-When there are more than one payment means code, they shall be equal

Context
/ubl:Invoice | /cn:CreditNote
Test
count(//cbc:PaymentMeansCode[not(preceding::cbc:PaymentMeansCode/. = .)]) <= 1