Some XSLT processors (e.g. MSXML3) allow calling from XSLT to JavaScript
but the mechanism for doing so is processor-dependent. Consult the
vendor's documentation for writing extension functions.
Are you sure you need to write the function in JavaScript? It's much
cleaner to write all the logic in XSLT if you can.
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Charlene Mo
Sent: 19 November 2002 18:10
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Embed JavaScript in XSL
Hi, I am new to the world of XML. After checking the archive
of the list
for information on embedding javascript in XSL, I did not get
exactly what
I wanted. So hope you can help me to understand. I need to embed a
javascript function that takes one parameter in XSL and use
it in either
xsl:if or xsl:when. Is there anyway that I can accomplish
this? Example
will be helpful. Thanks in advance.
************************************************
Charlene Mo
Online Services Coordinator
Flint Area Library Cooperative Online Network
G-4195 W. Pasadena Ave.
Flint, MI 48504
Web site: http://www.falcon.edu
Email: cmo(_at_)falcon(_dot_)edu
Phone: (810)732-0266
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list