This is a python script that autogenerates an XML file for Google's sitemap. It automatically builds the file list (based on a list of allowed extensions) and the modification times. It applies a default update frequency and priority to each page unless specified otherwise in a specific .metadata file associated with the filename.
You will need to edit some of the parameters at the beginning of the script to adapt it to your site.
gensitemap.py - original script, no xsl
gensitemap-xsl.py - a varation that I use with this xsl template