XHtml conformity

Dear Sergey,

As talked by email, here's the pull request ;)  New to github so didn't know that feature.

Best,
Christoph

Update: I fixed the bug, views work again and things seem fine!