473,804 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xlst or dom to display search result

MD
my database return the search result in the xml.
I have about 100 fields with 10 records if i use
the dom to parse in the browser with javascript
takes about 30 seconds to generate the table
with search result

If i use the xlst to transform this xml document to
table any faster?

if not faster way to display this complicated data with 100 fields?

MD
Sep 6 '06 #1
5 1493
MD wrote:
my database return the search result in the xml.
I have about 100 fields with 10 records if i use
the dom to parse in the browser with javascript
takes about 30 seconds to generate the table
with search result
Please post an example. 100 fields with 10 records
sounds so few that it should be trivial. Such small
files should take around a second to be processed.
Sep 6 '06 #2
MD
The search result is the collection of metadata and
each metadata item has three item like the following.
I hope you gotta idea. my data has chinese included so
i can't just diplay all.
<metadata>
<item>
<id>iims1234522 2</id>
<type>STRING</type>
<value>HELLO</value>
</item>
<item>
<id>iims1234522 2</id>
<type>DOUBLE</type>
<value>123.1234 </value>
</item>
<item>
<id>iims1234522 2</id>
<type>INT</type>
<value>123</value>
</item>
Sep 6 '06 #3
MD wrote:
<metadata>
<item>
<id>iims1234522 2</id>
<type>STRING</type>
<value>HELLO</value>
</item>
<item>
<id>iims1234522 2</id>
<type>DOUBLE</type>
<value>123.1234 </value>
</item>
<item>
<id>iims1234522 2</id>
<type>INT</type>
<value>123</value>
</item>
With 100 of these items, does it really take
30 seconds for the JavaScript DOM to process
the data ? If so, I would blame the _JavaScript_
implementation of the DOM. So, it makes sense
to try XSLT.
Sep 6 '06 #4


Jürgen Kahrs wrote:

With 100 of these items, does it really take
30 seconds for the JavaScript DOM to process
the data ? If so, I would blame the _JavaScript_
implementation of the DOM.
I don't know of any JavaScript implementation of the DOM. Usually the
DOM is implemented by e.g. browser applications like Mozilla or IE in
C/C++ or by viewers like the Batik Squiggle viewer in Java. Those
applications then host a script engine and expose that DOM to script.

MD, can't you transform your XML on the server to HTML? Whether you use
DOM there or XSLT is probably not necessarily a question of speed but
XSLT is geared towards transforming XML to HTML so doing it with XSLT
might be easier.

On the client using DOM scripting to parse the XML has much wider
support than scripting XSLT client-side.
As for the time you encounter, that sounds odd, even assuming that much
of that time comes from creating and rendering the HTML table and not
from extracting the data from the XML.
If you need help with that then provide more details.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 7 '06 #5
MD
Thanks both of you for the tips.

I am rechecking my javascript to see if i am doing something wiered
to slow the whole process.

MD.

"Martin Honnen" <ma*******@yaho o.dewrote in message
news:45******** **************@ newsspool1.arco r-online.net...
>

Jürgen Kahrs wrote:

With 100 of these items, does it really take
30 seconds for the JavaScript DOM to process
the data ? If so, I would blame the _JavaScript_
implementation of the DOM.

I don't know of any JavaScript implementation of the DOM. Usually the
DOM is implemented by e.g. browser applications like Mozilla or IE in
C/C++ or by viewers like the Batik Squiggle viewer in Java. Those
applications then host a script engine and expose that DOM to script.

MD, can't you transform your XML on the server to HTML? Whether you use
DOM there or XSLT is probably not necessarily a question of speed but
XSLT is geared towards transforming XML to HTML so doing it with XSLT
might be easier.

On the client using DOM scripting to parse the XML has much wider
support than scripting XSLT client-side.
As for the time you encounter, that sounds odd, even assuming that much
of that time comes from creating and rendering the HTML table and not
from extracting the data from the XML.
If you need help with that then provide more details.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Sep 7 '06 #6

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

Similar topics

4
2134
by: Pascal Sartoretti | last post by:
Hello, I am looking for a formal definition of XSLT. Either a DTD or an XML Schema, whatever. Is there such a thing ? There is for instance one for XML Schema itself at http://www.w3.org/2001/XMLSchema.dtd . My problem is that I have a big set of XSLT files which may contain errors: for instance, use of XLST features that were only in the draft XSLT norm, but which Microsoft IE still supports. A DTD or XML Schema would greatly help me...
3
2630
by: Hai Nguyen | last post by:
I would like to know after transforming my datatables which store in dataset into XML form. Now I want to save it into a file and also create a XLST file to read it. How can I do that? Would you give me any advice or link to further my understandings. Thanks for any clues
3
1475
by: Hai Nguyen | last post by:
Sorry I don't have code yet. I'm asking for solutions which can help me solve the problem. This is the first time I have to cope this situation, hence I'm clueless how to start. I would like to ask for some ideas then I can start from scratch. Let's say: I have a dataset which has a table Customers (which retrieves from an Access Database) 1/ I convert it into XML format, it should look like this <Customer> <Name>...</Name>
1
1208
by: Adrian | last post by:
Hi No sure if xlst is the correct choice! or if it is how I would use it from within a windows VB application! I had XML data help in an xmlelements object and I want to format the data and display it within my VB dotnet windows application. the data is not held in a file it is received back from a web service, and I want to avoid writing it as a file and reading it back! What's the best way of doing this? any links to examples?
1
1193
by: ad | last post by:
Hi, How can I use xlst to display a xml file in asp.net?
2
7055
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs, input box for units of service, description of the service and each row has its own dropdown list of unit fees that apply. Each dynamically created row will return 3 values fee1_choice, fee1_unit and fee1_money. Note The above informaton is...
3
2886
by: WiseG1rly | last post by:
Hey everyone! I am completley new and I will start off by saying that I am not a programmer - figuring out this search took so long! I am debugging now and would appreciate any help :) Anyways, I am creating a website where I have a database of pet listings in california. Each record lists the Type of Listing (eg. dog grooming or vet) the the Area it is in (so state, county etc.), a Name, Description, and Address. I created a search...
1
1972
by: dave_kajinsky | last post by:
Hello all, I would like to do something with xlst, perhaps I can get help from this group? Here it goes: I've got 2 files: an ascii file and a file that identifies tokens in the ascii file. For example the ascii file could be:
1
1763
by: jasone | last post by:
Hi all, ive got a search function running on a database, the action performed by the form is shown below, within the 'else' statement i would like to show roughly 5 random rows from the sql table (alternative products) if you like. please find below the script im currently running for the search, the else statment just shows 'no results found' message at the moment. many thanks in advance for any who can help: <table width="40%"...
0
9715
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10353
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.