xsl-list
[Top] [All Lists]

Re: Javascript variable to XSL variable

2005-02-17 13:00:50
I didn't follow this thread, but i have a lot of xslt being called
from Javascript passing parameters to it, what's the problem?

For example

        var processor = new XSLTProcessor(); 
        xslDoc.load(xsl+".xsl"); 
        processor.importStylesheet(xslDoc);  
        processor.setParameter(null, "pos", pos);  
        var xmlResult = processor.transformToDocument(xml);  

Am i missing something?



On Thu, 17 Feb 2005 20:09:45 +0100, Camaleón <noelamac(_at_)gmail(_dot_)com> 
wrote:
On Thu, 17 Feb 2005 19:41:46 +0100, Camaleón wrote:

Thank you all for your comments. I will keep reading the list.

Uhm. How about using cookies? Could I set a cookie with javascript and
then read the cookie value to use it as xsl variable? I don't like
very much using cookies, but sometimes is the only way to exchange
values between different programming languajes...

Can this be an option?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--