Dark theme

XML and Python


Finally, let's transform our XML.


Here's a last XML, with the associated XSL and XSD. Download only the XSL (the other files are just for testing if you can't get it working with your XML)

map3.xml: map3.xsl, map3.xsd

Using the transformation code from the lecture, can you get your program to write out your newly altered XML as an HTML file?


Once you've got that working, have a look at the lxml tutorial to see which elements we've covered, but also check out the SAX documentation to see how the alternative methodology works.


  1. Validating
  2. Parsing and adding
  3. This page