Post not yet marked as solved
Post marked as unsolved with 0 replies, 194 views
The javascript code below fails when the xsl transformation passed to the importStylesheet contains xsl:include href= references. No exception is thrown and the transformToFragment function simply returns null. This works on all other browsers except Safari. For Safari all xsl:include href references must be manually resolved and inserted into the XSL transformation document prior to calling transformToFragment.
Is this a known bug? Is there a workaround aside from retrieving all xsl:include href manually?
//Opera, Firefox, Chrome, Safari ...
processor = new XSLTProcessor();
processor.importStylesheet(settings.xslDocument);
if(settings.param) {
for(var param = settings.param.length; param--;) {
processor.setParameter(null, settings.param[param].name,
settings.param[param].value);
}
}
transformedXML =
processor.transformToFragment(settings.xmlDocument, document);