F-INV336

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

The documenttype does not match an OIOUBL Invoice and can not be validated by this schematron.

Context
/
Test
namespace-uri(*) = 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'

Checked with Denmark OIOUBL 2.1 Invoice

Message

cac:CertificateTypeCode must contain a value.

Context
doc:Invoice/cac:InvoiceLine/cac:Item/cac:Certificate/cbc:CertificateTypeCode
Test
normalize-space(.) != ''

Checked with Denmark OIOUBL 2.1 Invoice