# DT-CIUS-PT-020_5.2

Source: https://xmlvalid.com/rules/DT-CIUS-PT-020_5.2

> The BT-22 when prefixed with '#ADDITIONALPROPERTY#', have to meet the defined format for value: alphanumeric with size between 1 and 50.

- Level: error
- Rule sets: CIUS-PT rules (Portugal, UBL) 2.1.1
- Context: `//ubl:Invoice/cbc:Note | //cn:CreditNote/cbc:Note`
- Test: `starts-with(normalize-space(.),'#ADDITIONALPROPERTY#') and not(matches(normalize-space(substring-before(substring-after(substring-after(.,'#ADDITIONALPROPERTY#'),'#'),'#')),'^(.{1,50})$'))`

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