OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Early Draft Review: XQuery for Java (JSR 225)

[ Lists Home | Date Index | Thread Index ]

Bill de hÓra wrote:

> No. Syntactic correctness isn't what's valuable, nor is OOP 
> conformance. What is valuable is the ability to construct and 
> mnaipulate queries dynamically in the target programming language - 
> XQuery reflection.

And you couldn't construct and manipulate strings dynamically?

> Not in my experience. Having access to a syntax tree can be quite useful.

Yes, it can. But the most common use of syntax trees is as a parse 
result. A corollary in this domain would be if one could read a stored 
(or user-entered) query and obtain a syntax tree from it. But I didn't 
get that from the sketched proposal, which seemed to me to be 
output-only. Granted, given that there is no actual proposal, one is 
free to attach all sorts of wonderful things one would like to be in it, 
but it would be good to know what use cases you or others are thinking 
an OOPified API would address.

Bob Foster


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS