Message

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

Context
ubl:Enquiry/cac:ResponderParty/cac:PartyIdentification/cbc:ID
Test
not(./@*[not(name()='schemeID')])
Usage
/ t007:Enquiry / cac:ResponderParty / cac:PartyIdentification / cbc:ID