Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xsltprocessor debugging in Chrome

This code::

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

works fine in Firefox, but 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).

like image 555
Moose Morals Avatar asked Dec 06 '25 14:12

Moose Morals


1 Answers

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

like image 127
Moose Morals Avatar answered Dec 08 '25 09:12

Moose Morals



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!