you are presumably initialing $y to 0 somewher that you don't show us,
it seems that you want @t to be
<xsl:value-of select="floor($y div $top)"/>
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________