RE: [xml-dev] What niche is XQuery targeting?

From
Michael Kay <>
To
'Burak Emir' <>, 'David Carlisle' <>
Date
2004-12-02T18:35:48
ID
<20041202183550.SFKI3407.aamta07-winn.mailhost.ntl.com@Turtle>
Thread
RE: [xml-dev] What niche is XQuery targeting?
> In XSLT, I search in vain for FLWOR expression.

Actually, all the components of a FLWOR expression are there in XSLT, and in
Saxon I had no trouble compiling a FLWOR expression to the internal
representation of XSLT instructions. There's only one minor exception, the
"order by" clause in XQuery relies on a concept of tuples which doesn't
correspond to anything in the user-visible data model or in XSLT (and which,
quite honestly, I have yet to find a need for).

You can argue that the equivalent syntax in XSLT is very cumbersome, but
that only becomes a problem if you're doing heavy joins, and I very rarely
see applications that need that: in XML 90% of the relationships tend to be
within the hierarchy, so you use the XPath axes rather than value-based
joins. 

Michael Kay