# MYDATA-313

Source: https://xmlvalid.com/rules/MYDATA-313

> Classification type … forbidden for Classification category … combined with invoice type … (invoice line …); allowed: ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoiceDetails/inv:incomeClassification | inv:invoiceDetails/inv:expensesClassification[starts-with(normalize-space(ecls:classificationType), 'E3_') or ecls:classificationCategory]`
- Test: `empty($allowed) or not(some $p in $allowed satisfies starts-with($p, concat($category, '|'))) or concat($category, '|', $code) = $allowed`

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