473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Search XML with HTML Form

Hello,

I have an extremely new user to XML and XSL, and I would like to know
how to search XML data via a input form in HTML, and have the results
displayed in HTML.

If anyone has code that can do that, could you please post the relevant
files. I have searched the internet for a while now, and have been
completely unsuccessful. I would like to do it using javascript in my
XSL file if possible, or using CGI script to search the XML file and
display the results.

Any help would be much appriciated. Thanks a lot!

Zakhir

Sep 8 '06 #1
4 2103
za*****@gmail.com wrote:
...
I have an extremely new user to XML and XSL, and I would like to know
how to search XML data via a input form in HTML, and have the results
displayed in HTML.

If anyone has code ..
Will 'Klingon' do?
>...that can do that, could you please post the relevant
files. I have searched the internet for a while now,
*
>...and have been
completely unsuccessful. I would like to do it using javascript
<http://groups.google.com/group/comp.lang.javascript>
>..in my XSL file if possible, or using CGI ..
<http://groups.google.com/group/comp.infosystems.www.authoring.cgi>
>...script to search the XML file and
display the results.

Any help would be much appriciated.
Try the people who might deal with the languages you
requested (this is a usenet newsgroup for the *Java*
programming langauge) but you might help them
to help you by ..
* mentioning the search term used.

Andrew T.

Sep 9 '06 #2
Thommo wrote:
Try the people who might deal with the languages you
requested (this is a usenet newsgroup for the *Java*
programming langauge)
....D'Ohhhhh!

(embarrassed grin) Just popped by, and forgot where I
was. My deepest apologies to the OP, and for the waste
of bandwidth..

Andrew T.

Sep 9 '06 #3
za*****@gmail.com wrote:
Hello,

I have an extremely new user to XML and XSL, and I would like to know
how to search XML data
You need an XML search engine. There are many available, from little
free hand-made ones, right up to multi-million dollar ones for big
corporations.
via a input form in HTML, and have the results displayed in HTML.
How you gather the user's query, and how you display the results
can be done a gazillion different ways, but a common one is:

a) normal HTML <inputin a form
b) data is sent to a script
c) script checks query for acceptability and either rejects query
or passes it to search engine
d) search engine returns results, either in HTML, or XML, or some
other format (eg TAB-delimited text)
e) script translates the search-engine output into HTML and sends
the result back to the user's browser.
If anyone has code that can do that, could you please post the relevant
files. I have searched the internet for a while now, and have been
completely unsuccessful. I would like to do it using javascript in my
XSL file if possible, or using CGI script to search the XML file and
display the results.
I don't see what Javascript in an XSL file would have to do with it.

If you want to invent your own, and it's just on a single file with
minimal markup, you could just use grep in your script. But it won't
be as reliable as using an XML-compliant search tool.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Sep 9 '06 #4
Peter Flynn wrote:
You need an XML search engine.
Or an XPath, XSLT, or XQuery implementation, and code to convert your
form input into the appropriate operation. (I'd suggest the latter two
since they also cover formatting the data you've found.)

>>I would like to do it using javascript in my
XSL file if possible
If you're already using XSLT, you've already got the basic tools you
need, except for the step that turns the form input into an appropriate
stylesheet.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Sep 9 '06 #5

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

Similar topics

1
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast,...
2
by: CharitiesOnline | last post by:
Hello, I have set this script up to add paging to a search results page. Which on the first page works fine. I calculates how many pages there should be depending on the number of results returned...
8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
8
by: Someone | last post by:
Hi, I wish to use a dictionary.com search box and want the results of a search to open in a new window. Is there a way to do this using their code? The copy and paste code is provided below. ...
11
by: Panlflzs | last post by:
Howdy, I am working on a system where I need a basic HTML form to pass data to a cfm page. The cfm page will then query a database and return any matching data. I am using MySQL. I have my HTML...
10
by: jonathan184 | last post by:
Hi I tried getting this to work through dreamweaver but it did not. So i found a n example on the internet , i followed everything exactly the search script does not work. Could somebody help me...
1
Merlin1857
by: Merlin1857 | last post by:
How to search multiple fields using ASP A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and...
12
by: iahamed | last post by:
Hi Everyone, I got two parts of my advance search to work, I am running out of Logic to connect the third. My mind is in swing! Pleaseeeeeeeee Help me. I have 3 Fiels to search, the First two...
5
by: manish | last post by:
HI I want a jawascript that will search pages from only my subdomain website eg. abc.efg.com can anyone help me please give the exact jawascript as I am not an expert programmer please if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
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,...

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.