From: Wolfgang M. <wol...@gm...> - 2005-11-03 10:53:52
|
> It illustrates one of my main concerns with xQuery and eXist. > It it still the case in the latest snapshot that Xupdate demands a > completely different syntax than xQuery? What makes it difficult to use XUpdate from within XQuery is not the different syntax alone, but rather the fact that the XUpdate is interpreted by the XUpdate processor, which creates its own query context, seperate from the current XQuery context. Variable and function definitions within the XQuery context will not be available in the XUpdate and vice versa. From my point of view it really makes sense to integrate a dedicated data manipulation language into XQuery, and the W3C has already started work at it. eXist already provides a set of extensions which are closely modelled after the XUpdate commands, but integrated into the XQuery syntax: http://exist-db.org/update_ext.html One could argue if extension functions would not be better than a syntax extension. Anyway, I hope it doesn't take too long before the W3C publishes the first working draft. Wolfgang |