February 20, 2004

XQuery for simple problems only?

Here is what Michael Kay (XSLT star, developer of Saxon, author of every-XSLT-dev-bible "XSLT Programmer's Reference" and XSLT 2.0 editor) writes about XQuery:

The strength of XQuery is that it is a simpler language than XSLT, which makes it much more feasible to implement efficient searching of very large XML databases.

Its other strength is that for simple problems, the XQuery code is much shorter than the XSLT code.

But for complex manipulation of in-memory XML, I would use XSLT every time, regardless of whether you're dealing with "data" problems or "document" problems.

Do you agree with him?

February 20, 2004 11:32 PM | #XQuery
Comments

Opposite side?

Posted by: Oleg Tkachenko at February 22, 2004 3:07 PM

Well, being XSLT fan for long time I tend to agree too.
While Mike is right (as usual) in his follow-up that one doesn't choose programming language rationally.

Posted by: Oleg Tkachenko at February 22, 2004 3:06 PM

I agree with Mike that I would use XSLT over XQuery -- in fact I'd prefer to use XSLT in *all* cases.

XSLT is a richer language (XQuery does not have a feature equivalent to the template-matching mechanism of XSLT). I find it also more structured, readable and elegant.

--Dimitre

Posted by: itre Novatchev at February 21, 2004 2:50 PM
Post a comment




Remember Me?

Trackback Pings

Listed below are links to weblogs that reference this post:

Inside Indigo from Kirk Allen Evans' XML Blog
Tracked on February 22, 2004 6:20 AM