Sorry if this shouldn't be in this section...it's a bit of a cross section question.

In a recent post I was told that I should use xsl in order to sort my xml feeds... however I am struggling to assemble everything correctly..
PHP Code:
$xml = new SimpleXMLElement(
    
'http://www.feedsite.asp?section=Weather&Type=B',
    
null,
    
true
);

foreach(
$xml->xpath("//subevent[@title='Hottest day of the year']/selection[@name]") as $item) {

    
printf('%s = %f<br />'$item['name'], $item['backp1']);



I'd get something like this:

July = 2.2
August = 2.8
September = 2.6

..and this is where I struggle to implement the xsl having been so far unable to customise any examples that I have found. If anyone could shed some light on this it would be greatly appreciated!

_with thanks