Message

Payment means text shall occur maximum once

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