PintLint

Rules / IBR-119

IBR-119 error

A time must be formatted hh:mm:ss with optional fractional seconds .sss and time zone…

A time must be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168).

Fails

<Invoice>ABC 123</Invoice>

Fix

Fix the value's format. The rule text says what shape it must have.

Schematron
Context
//*[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2' and ends-with(local-name(), 'Time')]
Test
(string(.) castable as xs:time)

Official text: A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice