use the match attribute to associate the template with an XML element.The match=/ defines the whole document.The <xsl:for-each select=footballers/footballer> element allow us to perform some sort of looping when we specify the path.I use the <xsl:sort select=team/> element to sort the the data according to team data in an ascending order.The following elements are used to extract the value