[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Why not reinvent the wheel?
Joe English wrote: >Jonathan Robie wrote: > >I wouldn't go that far either; the structure of XQuery does look >to me like it's more amenable to optimization than XSLT. >But the '..' axis is definitely problematic. [ !! SNIP !! ] > In fact with lazy evaluation and a bit of care, >you can obtain good space usage almost for free (see for example HaXML). Hmmm ... I asked myself why Joe English knows about HaXML, went to his web site, and realized that this is the Joe English who did Cost (http://www.flightlab.com/cost/) >But with '..', an end-user can define all the other XPath axes: > > -- modulo typos and type errors... > FUNCTION ancestor(ELEMENT $e) RETURNS LIST(ELEMENT) > { > $e/.. UNION ancestor($e/..) > } Well, yes. Now the question - if a user chooses to write recursive functions to do this sort of thing, does that user have the right to expect that we will optimize such queries well? Jonathan These are my opinions right now. They may be quite different from the opinions of Software AG, the W3C XML Query Working Group, or the opinions that I will have after reading and considering your response.
|
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
|