javascript - Get error of XSLTProcessor -
i transformation errors.
here code:
var xsltprocessor = new xsltprocessor(); xsltprocessor.importstylesheet(xsl); var resultdocument = xsltprocessor.transformtofragment(xml, document);
i want know when made typo, example <xsl:apply-template>
insteand of <xsl:apply-templates>
.
i read doc didn't see on part...
my browser chrome 26.
i have created http://jsfiddle.net/cdug4/1/ test whether browser throws exception on importstylesheet
if dom tree of stylesheet code has been parsed xml not valid stylesheet.
firefox , opera throw exception, opera nice 1 saying "xslt_parsing_failed_err: error: unrecognized element in xslt namespace" chrome not throw exception seems.
Comments
Post a Comment