RE: [xsl] XSL - JavaScript Return Execute

Subject: RE: [xsl] XSL - JavaScript Return Execute
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
Date: Wed, 7 May 2003 10:40:32 +0100
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

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@xxxxxx]
Sent: 07 May 2003 10:27
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] XSL - JavaScript Return Execute


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.


Thanks many times for your assistance !!!

Greets Bule

+++ GMX - Mail, Messaging & more +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

 XSL-List info and archive:

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:

Current Thread