5. Exercise 1
This exercise is just to get you familiar with the “furniture” necessary to load SaxonJS into the browser.
Open
index.htmlin theexercises/ex01directory in your favorite editor.Add a
scriptlink to SaxonJS in theheadof the document:<script type="text/javascript" src="/js/SaxonJS2.rt.js"></script>Add another
scriptjust below the first to call thegetProcessorInfo()API. The SaxonJS API includes several methods, including this one which returns information about the processor.<script>console.log(SaxonJS.getProcessorInfo())</script>Open your browser’s console window to view the processor info.
Does SaxonJS support higher order functions? (This is not a trick question, the answer is in the processor info!)