xsl-list
[Top] [All Lists]

RE: XSL - JavaScript Return Execute

2003-05-07 02:40:32

this isnt really a question about XSLT, but about how XSLT is being processed, 
of course this will be specific to your particular processor. You can have XSLT 
generate javascript code, which in turn will get executed correctly, as 
clientside code. Its down to parsing sequence...

If you are expecting your XSLT processor to execute javascript code....then you 
are asking XSLT to extend itself...which is typically achieved with some sort 
of extension etc... . Otherwise you need to supply the results of your 
processing either in your xml or as an injected xslt parameter to the transform.

possibly you have existing javascript functionality that you have labored long 
and hard, and just want to somehow pop in the results of processing here is a 
good clear article of what you possibly want to do

http://www-106.ibm.com/developerworks/xml/library/x-tipxsltjs/?dwzone=xml

though relise that you will have probs getting a cross XSLT parser solution to 
this type of thing. 

gl, Jim Fuller


-----Original Message-----
From: Jack Dubovski [mailto:regmaster(_at_)gmx(_dot_)ch]
Sent: 07 May 2003 10:27
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] XSL - JavaScript Return Execute


Hello

I have the follow Question:

It is possible to merge Javascript in XSL. If i have a function now, which
returns the String "<xsl:call-template name="anyTemplate"/>", do I have then a
possibility to execute this valid XSL Tag?

Code Bsp:
<xsl:value-of select="wta:getTemplateName()"/>   <-- Returns
<xsl:call-template name="hello"/>

The Parser execute the xsl:value-of Tag and the result in the generated File
is <xsl:call-templ...
I would like however contents of the Templates.

IS THERE A POSSIBILITY ???

Thanks many times for your assistance !!!


Greets Bule

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient please contact the sender immediately. Any 
disclosure, copying, distribution or any other use of this communication is 
strictly prohibitedand may be unlawful. Stuart Lawrence Marketing 
Communications Limited reserves the right to monitor and intercept 
communications for unlawful business purposes.

This also confirms that this message has been swept for viruses, although 
Stuart Lawrence Marketing Communications Limited accepts no responsibility for 
any loss or damage resulting directly or indirectly from the use of this email 
or contents.

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



<Prev in Thread] Current Thread [Next in Thread>