5. Exercise 1
This exercise is just to get you familiar with the “furniture” necessary to load SaxonJS into the browser.
Open
index.html
in theexercises/ex01
directory in your favorite editor.Add a
script
link to SaxonJS in thehead
of the document:<script type="text/javascript" src="/js/SaxonJS2.rt.js"></script>
Add another
script
just 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!)