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/