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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -