jadeite100
Programmer
Hi:
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.
Yours,
Frustrated.
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.
<xslaram name="numberOfRecordsFromDatabase" select="search-result/rec-num" />
<xsl:template name="Body">
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad="cloneHeader();window.parent.shrinkIFrame(<xsl:value-of select='$numberOfRecordsFromDatabase'/>);"
onresize="cloneHeaderResize();window.parent.shrinkIFrame(<xsl:value-of select='$numberOfRecordsFromDatabase'/>);">
</body>
</xsl:template>
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.
Yours,
Frustrated.