|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Accessing <xsl:param> from a javascript function
I missed the original question but you can't access $varName directly from your
JavaScript, you need to pass it to the function:
<xsl:value-of select="myFunctions:showValue($varName)"/> showValue(Value)
{
return $varName;
}This assumes you are talking about JavaScript within the XSLT, otherwise, if you mean script within a web page then this is run after the transformation process and has no knowledge of any stylesheet variableds. You would just pass them by using: var varJsName = "<xsl:value-of select="$varName"/>"; If you want to pass a variable into a stylesheet as part of the querystring to be processed client side then your script parses the location.search value to extract the data and pass it to your client side scripted transform. Joe ----- Original Message ----- From: "Van Henreich Rontal" <vanhenreich@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, June 18, 2005 8:46 PM Subject: Accessing <xsl:param> from a javascript function Hi,
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








