added XHTML case to detectSyntax