473,473 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using Javascript to call many xml files into xsl

6 New Member
I am creating many xml files. I want each one to be shown in an xsl type sheet but my problem is that I would like to have a next button so that I can look at the next xml sheet. I have seen a few things that have said you can do this with javascript but I am unsure. The example would be these xml files in a folder
xml_file001
xml_file002
xml_file003
xml_file004
and the xsl file would read the information on a single page, then click a link to go to the next page to read the next xml file. Any help with this would be greatly appreciated.

Thanks.
Feb 15 '08 #1
5 1428
acoder
16,027 Recognized Expert Moderator MVP
I don't know how you add JavaScript to xsl, but you can use JavaScript to load an XML file. Can you show some code, so we have a better idea of the setup.
Feb 15 '08 #2
nocturnal428
6 New Member
Sorry, for the data I'm applying this to I really can't. I will go in more detail for you though.
Lets say I have three xml files that all look like this

<Information>
<System>abc</System>
<Model>xyz</Model>
<Uptime>123</Uptime>
<Information>

I want to load a xsl type of file to show a web page with this information in a table from one xml file. I then would have a next link, or next button to click to reload the same information but with the next xml file in a folder. The only other way I have heard of doing something like this without Javascript is by merging all the xml files together and passing a position parameter in xsl but I am unsure if that would work. I would need the user of the script to be able to click a link to move on to the next xml file.
Feb 15 '08 #3
nocturnal428
6 New Member
Thinking about it now would it be possible with javascript (I dont think you can use just html) to create a webpage with links to the xml files that I can just click on and open. They would all be linked back to one xsl file to open because they are all of the exact same format. So it would look something like

xml_link1 (click on any of the three links to open up the xml file based on the xsl)

xml_link2

xml_link3
Feb 15 '08 #4
nocturnal428
6 New Member
Sorry I guess it was as simple as using html to do what I wanted to do. I think that if I actually had the something like a next or prev link I would of had to embed the xml in html anyways. Thanks.
Feb 15 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
Well, that was simple. Glad to hear that you got it working and thanks for posting back to let us know.
Feb 15 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Martin Walke | last post by:
Hi, This may seem like a client side problem but.... I have web pages that are made up of a number of javascript include files as well as 'in page' script. They all work fine running locally...
6
by: Sergio Otoya | last post by:
Hi all, Is there any way of copying a file using javascript, not using the Filesystemobject (ActiveX). I need this to run in Windows and MACS. Any help would be greatly appreciated. Thanks...
2
by: KS | last post by:
I have a folder where i got all my external javascript.js files saved. Using the external.js files in my .jsp files works fin by: <script language="JavaScript"...
1
by: Troy | last post by:
Hi! I am working on a rather complicated set of html and javascript files here and am experiencing some serious IE/Netscape(Mozilla actually) incompatability issues. I have an html page that...
9
by: Charley Kyd | last post by:
I'm a newbie who needs advice about how to use external files of JavaScript code. I spent an hour this afternoon browsing through JavaScript books at the local book store. In about 15 different...
4
by: gmazujian | last post by:
I have a problem. I would like to call a cgi program from javascript. I have scanned the web. I have a cgi program. It works fine if I call it by the url. However, when I call it from the...
4
by: Steven | last post by:
Hello, I have 3 files -- 1. mainform.aspx 2. mainform.aspx.cs 3. mouse.js mainform.aspx contains a image button ("zoominimgbut") which will exceute C# code, whenever the user clicks on it....
8
by: otto | last post by:
Hi, all: I have a problem with the inclusion of .js files in mu .aspx pages when using Master Pages. I try to explain it. If I make a web project without master pages I simply put in the head...
8
by: Frank | last post by:
Hi, I am working with VS.NET 2005 Ultimately, I wish to call a JavaScript function from a .js file
2
hsriat
by: hsriat | last post by:
For a good programmer, providing good comments in the code is a must. In PHP, giving comments has no demerits. But what about JavaScript? Do you really want those comments to stay in the code and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.