Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML/XSL loading time problem 1

Status
Not open for further replies.

Mm03

Programmer
Oct 5, 2005
2
NL
okay this is the first time i build a xml database from where i extract data to show in a html page.

The problem is, when i test the loading time local on my pc, this goes very fast.

But as soon as i upload the site to my host (wich is fast and reliable) the loading time goes up to 5 - 10 seconds.


this is the XML file ->
this is one of the XSL files ->
this is the html file that extracts the data ->notice the loading time..
(check the source)


i know this is not programmed very well, but I couldnt fix it any better..

Anyway what is wrong? Is something looping?
how can i make the loading time faster?

I hope someone can help me!
 
Can you not do the transform server-side? This would considerably speed things up. At the moment the browser has to load the html completely, then load the xml and xsl, then do the transform.

Jon

"I don't regret this, but I both rue and lament it.
 
I fixed things a little
its a little faster now

i added
Code:
<SCRIPT type="text/javascript">
var xml = new ActiveXObject("Microsoft.XMLDOM")
		xml.async = false
		xml.load("../vloerendb.xml")
</SCRIPT>

to the head of the html file
instead of loading the xml file several times



Jonty thanks for your reply, how can i transform the data on the serverside?
 
You need to use some sort of server-side script; ASP, JSP, Coldfusion, CGI, etc...

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top