malthe/chameleon — Issue #74: Expressions in attributes must be unescaped before processing
Author: wichert
Created: 2011-11-30 12:31:23+00:00
State: open

I have an XML template with a basic condition:

```!xml

```

Chameleon 2 though does not like this and raises an ExpressionError:

```
ExpressionError: invalid syntax

- String: "'disabled' if batch_info.page_count<=2 else None"
```

If I do not escape the ```<``` Chameleon is happy, but now xmllint correctly is no longer happy:

```
shop/category.pt:134: parser error : Unescaped '<' not allowed in attributes values
```

This appears to be a regression from Chameleon 1.