Assignments

  1. All hand-ins consist of ONE, repeat ONE compressed zip/jar/tgz-archive.
  2. An archive consists of one or more text files and/or code files.
  3. Text processed files must be pdf-files.
  4. Code files must be have their native filename extension, eg. x.java, y.html, etc.
  5. Put your academy login-id into the filename, and an "_7" to number the file individually, eg: EAANILA1_7.zip
  6. Put the token dbxml somewhere in the subject, eg: Assignments dbxml
  7. Mail it to nml@acm.org

Look at this page Model Page.

This assignment requires that you make a page like this.

  • When the page loads you must read the subjects from your lecturenotes.xml. These subjects must be created with subjects.xsl, a stylesheet that creates the list items only. The page must thus have an event handler that activates this transformation of the xml file by the xslt file. When a nav link is clicked
  • a list of notes from that subject must be created by headers.xsl transforming your lecturesnotes to headers only. The headers must be links withan event handler that, when clicked
  • will create a display of that note in detail. This must be done by content.xsl, a third xslt file also working on your lecturenotes file. Activation again by an event handler.

This involves, as you have read, creating three small xsl files, all manipulating the lecturenotes. You will make them, and test them the usual way.

It also involves, using some JavaScript in order to make the html page capable of doing this for you. Therefore you must the methods taught in today's lesson to

  • Use AJaX to fetch the xml and the xsl files
  • Use JavaScript do the transformation
  • Use JavaScript to place the xslt output in the DOM model af the page.

You may work in pairs (max) to do this. If you choose to do so, put the names of both participants in the hand in mail.