[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Verboseness - XML Syntax for XQuery 1.0 (XQueryX)
- From: Michael Champion <mike.champion@s...>
- To: xml-dev <xml-dev@l...>
- Date: Sun, 17 Jun 2001 17:38:08 -0400
Dylan Walsh
writes:
"However this XML Syntax below is
such that it is unlikely to be used for hand written querys.
Could
they not have a version with normal XPath and perhaps provide a return syntax
which is similar to an XSLT template body? I think they should strive to make
XQuery consistent with XSLT rather than SQL."
A few comments ...
First, I would guess that the major use for
XQueryX will not be "hand written queries", but for queries written by programs
that use XML tools, especially the DOM API or XSLT. I don't have a
concrete example in mind, but can imagine that it would be convenient for many
to program a query as an XML document that can be validated against the
XQueryX schema. I can more easily imagine scenarios when one would want to
parse the XQueryX syntax using an XML tool to, for example, route it to the
appropriate query engine, or to add/delete/modify the query before processing
it. Of course all this *could* be done with string processing and the BNF
grammar of XQuery itself ... but this can be said for almost any XML application
-- much of XML's value comes simply from the fact that it is standardized, so
you don't have to define your own grammar, parser, API, validator,
transformation engine, etc.
If this particular XML syntax is annoyingly
verbose and can be readily improved, please make concrete suggestions to the
XQuery working group. That is, after all, the whole point of these early
public working drafts. I share the sense that as much as I like the idea of an
XML syntax for XQuery in principle, seeing the Q13 example makes me wonder if
this is really practical.
Finally, on the question of whether XQuery
should be more SQL-like than XSLT-like, I think that question is moot:
XSLT *is* a fairly reasonable query language, and those who are happy with it
will probably be able to get along without XQuery. The whole point of XQuery (as
I see it) is to provide those who need it with a more SQL-like XML query
language.
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|