473,383 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

XSL and Ajax

I have an XSL stylesheet attached to an xml document. I have a
javascript file attached to the xsl file. My problem is I can't find a
way to replace a node in the original xml file with a new node obtained
through ajax. The javascript doesn't seem to carry over into the
original xml.

I'm doing this so I can apply the template I already have to the new
data. Is this even possible, or is there some other way in xsl to
achieve this?

Thanks!

Dec 31 '06 #1
4 2367
<Jo********@gmail.comwrote:
Is this even possible, or is there some other way in xsl to
achieve this?
i didn't understood clearly what u've asked for, however here :

<www.yvon-thoraval.com/Canvas/menu.html>

i do have an example inserting nodes into a document body.
--
Père Noël
Jan 1 '07 #2
Thank you. This is basically what I meant:

Any javascript i have in my XSL file can only access the DOM in the
XSL, but not in the XML file that the XSL is transforming. Here's a
graphical representation:

file1.XML --file2.XSL --file3.JS

How can I get the JS to work with both file2 AND file1? It currently
only works with file2.

Thank you again for your reply.

Jan 1 '07 #3
Anyone have an answer?
On Jan 1, 11:41 am, Joe.Lav...@gmail.com wrote:
Thank you. This is basically what I meant:

Any javascript i have in my XSL file can only access the DOM in the
XSL, but not in the XML file that the XSL is transforming. Here's a
graphical representation:

file1.XML --file2.XSL --file3.JS

How can I get the JS to work with both file2 AND file1? It currently
only works with file2.

Thank you again for your reply.
Jan 4 '07 #4
<Jo********@gmail.comwrote:
Anyone have an answer?
could you give a skeleton example ?

because u're speaking about ajax, i suppose u're using a browser.

the browser is supposed to display (part of) the xml file ?

i don't understand why your js file is attached to the xsl file rather
than the xml one or the main filedisplayed by the browser.

quiet frankly i didn't catch even what you're trying to do.

is your js file an extension to xsl ?

your reprentation of the process :

xml --xsl --js

does-it mean u want to produce js at output ?

normalement js is used to "govern" the process with xsl like :

js -xsl
|
v
xml_in --o--xml_out
but u might have js inside xsl as an extension of xsl, in which case the
js would operate upon xml_in.
--
Artaban de Médée
Jan 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
0
by: melledge | last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference Industry experts offer insight into next generation of the Web ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the rapidly...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
10
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's...
2
by: soni2926 | last post by:
hi, does anyone know of any good books on ajax and asp.net, one that teaches ajax itself before jumping in atlas? I wanted to get an understanding of ajax and how to use it, most books i've seen...
1
by: shaunwo | last post by:
I'm an AJAX / DOM Novice (at best) and trying to figure out how to write the value to a couple input fields. I don't remember exactly where I got the ajax.js file I'm using from (went to the website...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.