XV-GR-03

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

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

Message

tableAA (the table number) is accepted only for a restaurant order slip (8.6), not a ….

Context
inv:invoiceHeader
Test
empty(inv:tableAA) or $type = '8.6'

Checked with myDATA 2.0.2

Message

totalCancelDeliveryOrders is accepted only for a restaurant order slip (8.6), not a ….

Context
inv:invoiceHeader
Test
empty(inv:totalCancelDeliveryOrders) or $type = '8.6'

Checked with myDATA 2.0.2