# BR-DEX-04

Source: https://xmlvalid.com/rules/BR-DEX-04

> Any scheme identifier in … MUST be coded using one of the ISO 6523 ICD list.

- Level: error
- Rule sets: XRechnung 3.0 rules (UBL) 2.6.0
- Context: `cac:PartyIdentification/cbc:ID[@schemeID and $isExtension]`
- Test: `((not(contains(normalize-space(@schemeID), ' ')) and contains($ISO-6523-ICD-EXT-CODES, concat(' ', normalize-space(@schemeID), ' ')))) or ((not(contains(normalize-space(@schemeID), ' ')) and contains(' SEPA ', concat(' ', normalize-space(@schemeID), ' '))) and ((ancestor::cac:AccountingSupplierParty) or (ancestor::cac:PayeeParty)))`

> Any scheme identifier in … MUST be coded using one of the ISO 6523 ICD list.

- Level: error
- Rule sets: XRechnung 3.0 rules (CII) 2.6.0
- Context: `//ram:GlobalID[@schemeID and $isExtension][not(ancestor::ram:SpecifiedTradeProduct) and not(ancestor::ram:ShipToTradeParty)]`
- Test: `((not(contains(normalize-space(@schemeID), ' ')) and contains($ISO-6523-ICD-EXT-CODES, concat(' ', normalize-space(@schemeID), ' '))))`

Validate a document against these rules: https://xmlvalid.com/validate
