XSL and Ajax

J

Joe.Lavers

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!
 
J

Joe.Lavers

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.
 
?

=?ISO-8859-1?Q?Artaban_de_M=E9?==?ISO-8859-1?Q?d=E

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top