I need some help with avg... I am attached files for xml --- I am struggling.... the question i have is :
1. What is the average speed of all the dinosaurs?
A. <xsl:value-of select="format-number((sum(dinosaurs/*/speed[@units='mph'])div count(dinosaurs/*/speed[@units='mph']))"/>ft
it does not work...
or
B. <xsl:value-of select="sum(//speed) div count(//speed)" />
or
C.9. <xsl:value-of select="format-number((sum(dinosaurs/*/speed[@units='mph'])div count(dinosaurs/*/speed[@units='mph']))"/>ft