Any scheme identifier in <name/> MUST be coded using one of the ISO 6523 ICD list.
The schemeID of an affected ID element is not in the ISO 6523 ICD extension list or contains whitespace. The value must be a single identifier included in that list.
The ISO 6523 ICD list defines codes for identification schemes. A code from this list allows the identifier scheme to be identified unambiguously.
For an ID element, schemeID is not a valid single identifier from the ISO 6523 ICD list. Replace it with an identifier included in that list and containing no spaces.
- Find the affected
IDelement and note the value ofschemeID. - Replace the value with an identifier from the ISO 6523 ICD list that contains no spaces.
- Generate the invoice again and validate it once more.
Technical details
The test normalizes @schemeID, requires it to contain no spaces, and checks membership in $ISO-6523-ICD-EXT-CODES. ID elements inside SpecifiedTaxRegistration are excluded.
The rule applies to ID elements with schemeID in the extension context, unless they belong to SpecifiedTaxRegistration.
rule/@context)assert/@test)