Subject: Re: [xsl] Accessing <xsl:param> from a javascript function From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Sun, 19 Jun 2005 07:59:06 +0100 |
showValue(Value) { return $varName; }
Hi,
I'm using Weblogic 8.1 and thus would assume I have Apache's Xalan 2.2D11 that comes with JDK 1.4.1_02 of this version of Weblogic. I think I'm using XSLT 1.0.
From my code that does the transformation I passed a parameter using transformer.setParameter("varName", varValue); and access it from the xsl stylesheet using <xsl:param name="varName"/>. In one of my <xsl:template> I've included a javascript function enclosed in <script language="javascript"></script>, and in that function I wanted to access the parameter. I couldn't do it using $varName, {$varName} or '{$varName}'(if I output it using alert();).
My ultimate goal is to pass this value in javascript's window.location as a URL parameter value, because this javascript funtion was called by a <a href="javascript: func()"> elsewhere. Although I have the option of accessing the $varName as an argument to func() and then access that argument within the funtion, I think this is a two way process so I would like a cleaner, more direct access.
Thank you for anyone who can help.
Van
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Accessing <xsl:param> from a , Van Henreich Rontal | Thread | [xsl] FOP for MS .NET?, James Murphy |
RE: [xsl] A tricky problem, Carlos M. S. Bento N | Date | Re: [xsl] Finding the Undefined Ele, Mukul Gandhi |
Month |