BR-FREXT-CL-24

For Mime code in attribute use MIMEMediaType.

Official rule text

[BR-FREXT-CL-24]-For Mime code in attribute use MIMEMediaType.

Where the rule applies

Rule setDocument typeSeverity
French rules BR-FR, EXTENDED-CTC-FR (1.4.0.04)
FNFE-MPE
EXTENDED-CTC-FR (CII), EXTENDED-CTC-FR (UBL Invoice), EXTENDED-CTC-FR (UBL CreditNote)fatal

Fatal and error findings make the invoice invalid (valid: false); warnings and information do not.

Technical check

Syntax
CII · French rules BR-FR, EXTENDED-CTC-FR (1.4.0.04)
Context
ram:AttachmentBinaryObject[@mimeCode]
Test (must be true)
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet' or @mimeCode = 'application/xml' or @mimeCode = 'text/xml'))
Syntax
UBL · French rules BR-FR, EXTENDED-CTC-FR (1.4.0.04)
Context
cbc:EmbeddedDocumentBinaryObject[@mimeCode]
Test (must be true)
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet' or @mimeCode = 'application/xml' or @mimeCode = 'text/xml'))

How the API reports this rule

Every finding of POST /v1/validate carries the rule id, severity, message, location (XPath) and rule set, and links this page (docUrl):

{
  "severity": "fatal",
  "ruleId": "BR-FREXT-CL-24",
  "message": "[BR-FREXT-CL-24]-For Mime code in attribute use MIMEMediaType.",
  "xpath": "/…",
  "source": "schematron:france-rfe@1.4.0.04",
  "docUrl": "https://einvoice-api.eu/rules/br-frext-cl-24.html"
}

Check an invoice against this rule and every other rule of the rule set – in the browser, without sign-up.

Rule text and severity are taken unchanged from the official rule set; this page is generated from the API's configuration. Not legal advice.