How to passed an xsl parameter to a javascript function insi


I am having problem passing an xsl param variable as a parameter to a javascript function inside an
xsl styelsheet.

Here is my xsl stylesheet.

I am trying to pass a variable called numberOfRecordsFromDatabase to
a javascript function called window.parent.shrinkIFrame(<xsl:value-of select=’$numberOfRecordsFromDatabase’/>).

Is this possible?
If not, is there a way to do this.
Any hint would be greatly appreciated.