You need to write an xslt program called course.xsl. Y
ou can run your program using the following command:> java -classpath xalan\xalan.jar org.apache.xalan.xslt.Process -in course.xml -xsl course.xsl -out course.html
Before running the java program, you need to download xalan, the java implementation (processor) of XSLT, from xalan.apache.org. Alternatively, you can directly download from here the xalan.jar file and serializer.jar file.
You need to put all the files in the directory where you run the command.You can use other tools to run xslt, such as a browser. Most of the case the result will be the same as xalan. Since your assignment will be tested using xalan, it is safer for you to test on xalan before your submission.
Given an XML document about courses in a university as this, write an XSLT called course.xsl to extract the course ID, year, course title, prof, meeting days, time, and location, and present the data in an HTML file as in this sample output. There are three requirements you need to take care of:
function addDisplay (details) { document.write(details); }Note that document.write in the above javaScript code simply print the string in its parameter to the page. What you need to consider is to pass the course description into javaScript function addDisplay(). The XSLT code used can include <xsl:attribute name="href">, which is introducing href attribute. Following that you can add the attribute value.