Message

cac:PartyIdentification/cbc:ID SHOULD NOT have any attributes but schemeID

Context
ubl:EnquiryResponse/cac:RequestorParty/cac:PartyIdentification/cbc:ID
Test
not(./@*[not(name()='schemeID')])
Usage
/ t010:EnquiryResponse / cac:RequestorParty / cac:PartyIdentification / cbc:ID