Removed dependency on XSLT in favour of manual XML parsing