- From: Michael Rys <mrys@microsoft.com>
- Date: Wed, 1 Feb 2006 13:39:44 -0800
- To: "Fiebig, Thorsten" <Thorsten.Fiebig@softwareag.com>, "Jonathan Robie" <jonathan.robie@datadirect.com>, <www-ql@w3.org>
The insert statement as currently defined needs a node as insertion target. Since you cannot insert a document node into any other node, you cannot insert it using the insert statement. You should use a mechanism that is specific to your environment to insert documents. E.g. in SQL you would use the SQL INSERT or UPDATE statement to insert the XML document into a cell... Best regards Michael > -----Original Message----- > From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf Of > Fiebig, Thorsten > Sent: Wednesday, February 01, 2006 1:22 PM > To: Jonathan Robie; www-ql@w3.org > Subject: RE: XQuery Update Facility Working Drafts > > > Hi, > > I like the update proposal, but I have one major concern. My current > observation is that proposal allows the removal of document nodes from > an XDM instance via the "delete" operation. Assuming that my XDM > instance represents an XML database I can remove a document (node) from > my database via the "delete" operation. > On the other hand the constraints defined for the "insert" operation > seem to forbid the insertion of document nodes into an XDM instance. I > have a problem with that, because from my point of view this makes it > impossible to insert new document nodes into a database via XQuery > update. > > Best Regards, > > Thorsten Fiebig > > > -----Original Message----- > From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf Of > Jonathan Robie > Sent: Friday, January 27, 2006 9:11 PM > To: www-ql@w3.org > Subject: XQuery Update Facility Working Drafts > > > Two new Working Drafts were published today: > > XQuery Update Facility > W3C Working Draft 27 January 2006 > http://www.w3.org/TR/2006/WD-xqupdate-20060127/ > > XQuery Update Facility Use Cases > W3C Working Draft 27 January 2006 > http://www.w3.org/TR/2006/WD-xqupdateusecases-20060127/ > > I wrote a quick summary of the functionality provided in the following > blog entry: > > http://blogs.datadirect.com/jonathan_robie/2006/01/first_working_d.html > > Hope this is useful! > > Jonathan > > -- > Read my Blog: http://blogs.datadirect.com/jonathan_robie/ > Learn XQuery: > http://media.datadirect.com/download/docs/ddxquery/tutorial_query.html > Learn XQJ (the JDBC for XQuery): > http://www.datadirect.com/developer/xquery/topics/xqj_tutorial/ > Get DataDirect XQuery: http://www.datadirect.com/products/xquery/ > > >
Received on Wednesday, 1 February 2006 21:40:11 UTC