Added non-xhtml namespace check.