added support for many xml attributes.

- Padding does not work properly
- The first header flashes once when sticking