3

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).

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

Were you able to find a way of supporting Chrome? I've got an eye to do something similar.
Not exactly - I do the import on the server side. See stackoverflow.com/questions/1620589/xslimport-using-stylesheets for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.