Message

PartyLegalEntity shall occur maximum once within a Party.

Context
/ubl:Invoice | /cn:CreditNote
Test
count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity) <= 1 and count(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity) <= 1 and count(cac:PayeeParty/cac:PartyLegalEntity) <= 1 and count(cac:TaxRepresentativeParty/cac:PartyLegalEntity) <= 1