You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Abhijit Junnare <ma...@yahoo.com> on 2003/09/12 18:51:32 UTC

Java script with xsl in FOP ?

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

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Java script with xsl in FOP ?

Posted by Clay Leeds <cl...@medata.com>.
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Java script with xsl in FOP ?

Posted by Victor Mote <vi...@outfitr.com>.
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.

(This is really an XSLT question.) I haven't ever done it with javascript,
but I understand that it can be done. See the bottom of:
http://groups.yahoo.com/group/XSL-FO/message/3857
where a method for using java in XSLT (to get today's date) is demonstrated.
Note also that this must be dependent on your XSLT engine, so check its docs
or mailing lists for more specific information.

Victor Mote


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org