All rules · pint-om · error
CL-08-OM-HS
Value of 'cbc:ItemClassificationCode[@listID="HS"]' is not a valid 12-digit Oman HS code (CL-08-OM-HS).
No plain-English explanation yet. We write these in order of how often they actually trip people up, and this one has not come up much. Tell us what tripped you up and it moves to the front of the queue.
The official rule
Value of 'cbc:ItemClassificationCode[@listID="HS"]' is not a valid 12-digit Oman HS code (CL-08-OM-HS).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
if (string-length($hsCode) = 0) then true() else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '04') then contains($codes01, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '15') then contains($codes02, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '21') then contains($codes03, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '26') then contains($codes04, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '28') then contains($codes05, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '29') then contains($codes06, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '30') then contains($codes07, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '38') then contains($codes08, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '41') then contains($codes09, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '48') then contains($codes10, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '55') then contains($codes11, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '62') then contains($codes12, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '70') then contains($codes13, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '73') then contains($codes14, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '83') then contains($codes15, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '84') then contains($codes16, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '85') then contains($codes17, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '87') then contains($codes18, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '90') then contains($codes19, concat(' ', $hsCode, ' ')) else if (string-length($hsCode) = 12 and substring($hsCode, 1, 2) <= '98') then contains($codes20, concat(' ', $hsCode, ' ')) else false()Applied to nodes matching cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode[@listID='HS']
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator