Assignments XML.3

Handing In Assignments

You must hand in by using git

Hand In by git

  • Create an empty repo on bitbucket.org, gitlab.com, or github.com,
  • git push your local repo to the above remote repo.
  • For node assignments please put the line(s)

    node_modules/

    into your .gitignore file.

Send a mail to with:

  • The word 'handin <subjectname>' in the subject line of your mail
  • The url of your repo(s).

Assignment XML.3.0

Look at the cars in the following XML file.

Example 42.8. cars.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="carassignment.xsl"?>
<cars>
    <car year="2002" manufacturer="Jet" model="Sardine Can 1.6L">
        <meter>95664</meter>
        <color>silver</color>
        <price>99900</price>
        <dealersecurity buyback="no"/>
    </car>
    <car year="2004" manufacturer="Jet" model="Sardine Can 2.0">
        <meter>81283</meter>
        <color>red</color>
        <price>129900</price>
        <dealersecurity buyback="no"/>
    </car>
    <car year="2007" manufacturer="Jet" model="Sardine Can 2.0">
        <meter>49741</meter>
        <color>black</color>
        <price>169999</price>
        <dealersecurity buyback="yes"/>
    </car>
</cars>

Write a stylesheet that transforms the car data into a nicely styled HTML5 table. Find a way to visualize the car colours in stead of just writing the name of the colour in the table. Something like

Figure 42.1. Cars
Cars