开发者

xsltprocessor debugging in Chrome

开发者 https://www.devze.com 2022-12-09 03:01 出处:网络
This code:: xslProcessor = new XSLTProcessor(); xslProcessor.importStylesheet(xsl); result =xslProcessor.transformToFragment(xml, document);

This code::

xslProcessor = new XSLTProcessor();
xslProcessor.importStylesheet(xsl);
result =  xslProcessor.transformToFragment(xml, document);

works fine in Firefox, but开发者_StackOverflow中文版 result is null in Google Chrome. xsl and xml are both loaded from the network via XMLHTTPRequest, and show as Documents in the Chrome JS console. How can I get more information from Chrome about why the transform is failing? (There are no errors reported in the Chrome Javascript debugging window).


Turns out Chrome doesn't support <xsl:import>

0

精彩评论

暂无评论...
验证码 换一张
取 消