I have tried the following code :
<xsl:variable name="xx" select="'40967.6424503935'"/>
<script type="text/javascript">
time({$xx});
</script>
My intention is to display text via document.write() present in time(). But it didnt give any result.