resolves #494 output XHTML when backend is xhtml or xhtml5
Merge pull request #707 from mojavelinux/issue-494

resolves #494 output XHTML when backend is xhtml or xhtml5