Hello,
I need to transform some xml file via xslt. When I try to do it, nothing happens. I tried console.log in the var onSaxonLoad = function() {.... } but the code seems to never get there. I will post you the whole code, can you please help me, why is Saxon not working (neither in Firefox nor Chrome)?


$(document).ready(function() {
$.ajax({
url: "get_seasons.xml",
dataType: "xml"

}).fail(function() {
document.write('<span style="padding: 10px; background-color: orange; color: #fff; border-radius:5px">We are sorry, but we were unable to get data for you. Please, try again later.</span.');

}).done(function(xmlData) {
$.ajax({
url: "special.xsl",
dataType: "xml"

}).fail(function() {
document.write('<span style="padding: 10px; background-color: orange; color: #fff; border-radius:5px">We are sorry, but we were unable to get data for you. Please, try again later.</span.');

}).done(function(xsltData) {
var onSaxonLoad = function() {
var process = Saxon.newXSLT20Processor(xsltData);
var result = process.transformToFragment(xmlData);
console.log(result);
};
});

});

});

And the HTML document where I link to Saxon is: 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>some title</title>
</head>
<body>

<script src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" language="javascript" src="Saxonce/Saxonce.nocache.js"></script>
<script src="js/results.js"></script>
</body>
</html>



--
Lukáš Orgován