[NTG-context] XML: calculations on attribute values before output