Message

[UBL-SR-46]-Payment means text shall occur maximum once

Context
/ubl:Invoice | /cn:CreditNote
Test
(count(cac:PaymentMeans/cbc:PaymentMeansCode/@name) <=1)