Project

Profile

Help

SaxonCE not loading » sample.boot.xsl

Max Chemtov, 2017-03-21 15:25

 
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="no"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" />
<script type="text/javascript" language="javascript" src="Saxonce/Saxonce.nocache.js"/>
<script type="text/javascript" language="javascript">
document.getElementById("status").innerHTML = "The script executed, but saxon didn't load.";
var onSaxonLoad = function() {
document.getElementById("status").innerHTML = "Saxon loaded.";
Saxon.run( {
source: "test.xml",
logLevel: "SEVERE",
stylesheet: "test.xsl"
});
}
</script>
</head>
<!-- these elements are required also -->
<body><p id="status">It looked at the xsl, but the script didn't execute.</p></body>
</html>
</xsl:template>
</xsl:transform>
(2-2/3)