Re: [xsl] javascript variable in XSLT

Subject: Re: [xsl] javascript variable in XSLT
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 21 Nov 2002 12:18:54 GMT
> how can i set a javascript variable in an xsl variable.

This question is massively underspecified.

It's like asking how can you set a Fortran variable from C,
there's all sorts of standard or not standard APIs for communicating
between different languages, you need to say what API you are
using. XSLT spec itself makes _no_ mention of javascript, most XSLT
engines have no possibility of executing javascript code or setting
javascript variables.


If you are producing an html page that includes javascript as the result
of an XSLT transform then you just treat the javascript as text to be
written (which is how XSLT would treat it). You can write athe
javascript contents of an html <script> element in exactly the same way
as you write the English contents of an html <p> element.

David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread