Here's how we insert a dynamicly generated script it in the xslt that passes 
through to the HTML:

  <script language="JavaScript">loadTopFrame(&quot;<xsl:value-of 
          select="$print-csr"/>&quot;,&quot;<xsl:value-of 
          select="$print-quick-trend"/>&quot;,&quot;<xsl:value-of 
          select="$print-quick-visit-history"/>&quot;);var protocolId = 
'<xsl:value-of select="@PROTOCOL_ID" />';</script>

As you can see it could get a little ugly with large functions, but I think it 
should still be possible to carry anything through to the HTML.

Good luck.
-Matt



> -----Original Message-----
> From: Clay Leeds [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 10:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Java script with xsl in FOP ?
> 
> 
> Abhi,
> 
> Abhijit Junnare wrote:
> > Is it possible to use javascript inside the XSL that
> > will be used with FOP.
> > I need to do some calculations and so I need this. Is
> > there any other way to do some basic math or some
> > string manipulation? I know the string functions in
> > xsl but I am afraid they wont solve my problem.
> > Any help if appreciated.
> > Thanks,
> > Abhi
> 
> I've heard that XML (and/or XSLT?) has the capability to do 
> "JavaScript" 
> during processing. However, I've never needed to do this in my 
> calculations. I've done some fairly complicated mathematical 
> calculations using a combination of XSLT and XPath functions. 
> In either 
> case, this is somewhat off-topic for the FOP-user list.  You 
> should be 
> able to find more information by searching for "numeric 
> functions in XSL 
> or XPath".
> 
> HTH!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to