XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old September 21st, 2002, 03:47 AM
pragasam pragasam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: INDIA
Posts: 13 pragasam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks and answer again please...

Thanks friend. Sorry to tell you that firstly we tried with database.(Postgresql) We felt that was too slow. Then only, we decided to try with xml. But, we didn't try your idea of using xsl for the display after querying. Is it good enough to implement that using struts. Do you have any other idea?

I have another question. Can you explain me through an example for combining xml and xsl using dom? There can be any kind of parser..(It's not related with the previous one.)

Reply With Quote
  #17  
Old September 21st, 2002, 04:01 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
I haven't used struts before, and I don't know the full extent of what you're trying to implement, but for the little bit that you've told me it would be overkill. Not that you couldn't use it, it's just overkill.

As for speed issues, I'm surprised that you're having this much trouble finding a fast enough solution. The problem might not be with the different data storage/access options you've looked at. How fast is the hardware you're using as a server? Maybe there's another way of structuring your application that would make it faster? How big is your xml file (file size)? And what are your speed requirements? I'm finding it hard to believe that a database designed to handle tens or hundreds of requests per second with no performance degredation is too slow for what you need. I don't know what you need, though

As for the second part (xml/xsl/dom), that's basically what the jsp page I sent you does. It takes a requested attribute, uses the DOM to find the node with that attribute, transforms it and spits it to the browser. Is this what you were asking, or am I misunderstanding you?

Reply With Quote
  #18  
Old September 21st, 2002, 04:25 AM
pragasam pragasam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: INDIA
Posts: 13 pragasam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

Thanks. After discussing about that with our team members, i will let you know. bye

Reply With Quote
  #19  
Old November 1st, 2002, 05:18 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 8
Hi bricker42 and pragasam,
I request your help to learn XML, XSL, etc.
I am new to this technologies. I do not know JSP but I am good in PHP/MySql. With your help I can learn these technologies and it will make my concepts clear.
I have gone through your discussions above in detail.
What I understood is
When I will enter URL "http://mysite.com/bb.xsl" it will fetch data from aa.xml and display data of aa.xml in combobox of bb.xsl. But in bb.xsl there is reference of aa.xml. It refers to 'xslmaker.jsp'. Since I am new to JSP I could not understand what is meaning of "response.sendRedirect("aa.xml");" in 'xslmaker.jsp'.

Can I make flow like below.
1) bb.xsl will fetch data from aa.xml and display fetched fields in combobox of bb.xsl.
2) select Item from combobox of bb.xsl and submit.
3) submitting will take me to 'xslmaker.php' in my case.
4) 'xslmaker.php' will get connected to MySql database and fetch data, based on Combobox Item selected query.
5) 'xslmaker.php' will also make cc.xls page which will display fetched data from database as required.

If you know PHP, can convert 'xslmaker.jsp' to 'xslmaker.php' for me. That will make things very clear to me.
It will be great help if you help me.
Thanks.

Reply With Quote
  #20  
Old November 1st, 2002, 10:31 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
ads.

Actually, you'd hit aa.xml, which would call bb.xsl to do the transformation.

But anyway, here are some resources on using php to do transformations and work with xml.

http://www.devshed.com/Server_Side/...rans/page1.html

http://www.devshed.com/Server_Side/XML/XMLwithPHP

The first link it probably what you're looking for, and the second is a general overview of working with xml data structures in php.

Hope this helps.
__________________
-james

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > How can i get data from XML files from a XSL input(como box)?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT