[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Javascript variable to XSL variable

Subject: Re: Javascript variable to XSL variable
From: Camaleón <noelamac@xxxxxxxxx>
Date: Thu, 17 Feb 2005 17:47:47 +0100
use javascript variable in xsl
On Thu, 17 Feb 2005 08:44:33 -0400, Jaime Stuardo wrote:

> I think you cannot do that due to the way XSL and JavaScript work. JavaScript is executed by the browser, which only interprets HTML code..

> If you display an XML in the browser using a XSL, the browser finally will receive the HTML, and in that moment all JavaScript code may be executed.

O.K. I was trying to use some functions with sablotron, but neither
works (extensions are not enabled), so I have to make pure XSL
transform...
 
> Why do you have to do that? cannot you use only JavaScript? Maybe if you tell what you plan to do, maybe we can suggest the way to go around that.

Well, I am forced to use Javascript due to I have to work with combo
boxes and I need "onchange" event to operate and select values
(depending of the option selected).

One combo box contains XML data and displays the values. When I select
one option, I need lo load one XML file (depending on the selected
value).

For example:

<select name="combo1">
<option select="file1.xml">Option1</option>
<option select="file2.xml">Option2</option>
<option select="file3.xml">Option3</option>
<option select="file4.xml">Option4</option>
</select>

The main problem is that I am using a parser (Sablotron) with PHP to
transform XML and XSL files. I want to use standard components in
order to get all browsers can render the data, not only Internet
Explorer.

Any idea is highly appreciated. :-)

Greetings.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.