Using XSLT to analyse large XML datasets