Fixed XHTML resource
Implemented better resource resolver
Fixed xhtml writer