new xslt for error checking