Converts XSL file into a pie chart using PHP