modified the XSLT document and refactored the exporter slightly