UBL-FREXT-CR-410
A UBL invoice should not include the DeliveryTerms except ID and location cac:DeliveryLocation/cbc:Name (for INCOTERMS)
warning: reported, still valid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Context
/ubl:Invoice | /cn:CreditNote
Test
not(cac:DeliveryTerms) or (not(cac:DeliveryTerms/*[not(self::cbc:ID or self::cac:DeliveryLocation)]) and not(cac:DeliveryTerms/cac:DeliveryLocation/*[not(self::cbc:Name)]))
Checked with France EXTENDED-CTC-FR (UBL)