My xslt file contains a passed parameters
<xsl;param name="Widths">70px,70px,70px,100px,100px</xsl;param>
which I want to use to sets the widths of my table columns .
when I create my table I make the following call.
<tr>
<th valign="bottom" width="{foo:GetWidth(0)}">Length<br/>(units)</th>
<th valign="bottom" width="{foo:GetWidth(1)}">Width<br/>(units)</th>
.
.// rest of the table headers.
.
</tr>
.
.// rest of the table display
.
.
</table>
GetWidth calls some javascript embeded in the xslt file
<msxsl:script implements-prefix="foo" language="Javascript">
<![CDATA[
function GetWidth(item)
{
var str= "";
str = <make reference to 'Widths' values, bit I don't understand!!>
str = str.split(",");
return str[item];
}
]]>
</msxsl:script>
which I want to return the element of the node.
My problem is that I cant make any reference to param 'Widths' or any variables I may create, from within the javascript function. Is there a simple solution?