improved error checking on xslt processing