[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Create a web interface to query a XML database

Subject: Re: Create a web interface to query a XML database
From: Manuel Souto Pico <m.soutopico@xxxxxxxxx>
Date: Thu, 1 Oct 2009 02:27:39 +0200
Re:  Create a web interface to query a XML database
Dear Vyacheslav and Martin,

Thanks a lot for your replies. I don't know what differences there are
exactly between the two versions but everything I've done so far in
XSLT was with version 2.0 (because I had to use for-each-groups, for
example). I wouldn't mind using version 1.0, however.

Martin, is PHP the only way I can create HTML forms to send the
parameters to XSLT? Assuming I use PHP for that, the workflow would be
something like PHP-HTML page with a form to enter the search term,
which is sent to the XSLT stylesheet, which uses it in a if or when
condition to produce a HTML page with the results, is all this
correct? And everything happens on the server-side.

I'm also having a look at the eXist sugggestion by Vyacheslav, thanks
;) It seems that implies using XForms as well as XQuery, but on the
client-side, so your browser needs to have support for XForms
(IExplorer does, but latest version of Firefox does not).

Thanks a lot, I'll keep checking this thread and, if I eventually
manage, will post a summary of my adventure ;)

Cheers, Manuel

2009/9/30 Martin Honnen <Martin.Honnen@xxxxxx>:
> Manuel Souto Pico wrote:
>
>> Well, I just wanted to let you know what I intend to you, perhaps you
>> can advice me some way to go. Am I on the right path? Is XSLT/XQuery
>> easier or better than PHP-MySQL if my data is already in XML format?
>
> XSLT can be used to transform XML to HTML and it can take parameters so you
> can certainly write an XSLT stylesheet that takes search terms as
parameters
> and then searches and transforms your XML input source into HTML. If you
> have PHP 5 on the server then it comes with support for running XSLT 1.0
> transformations with the help of libxslt I think.
>
> So that approach is possible. Whether it is better in terms of memory
> consumption and performance on a web server than putting the data in a
MySQL
> database you will have to measure.
>
> --
>
>        Martin Honnen
>        http://msmvps.com/blogs/martin_honnen/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.