Added XHTML Temlpates Support.

Signed-off-by: Alex V Gonchar <dezconnect@gmail.com>