Hi Robby,
Do you mean "Guys, when will you finally add XQuery Update Facility
support"? )
Unfortunately, it's not that easy. At least it's not just kind of a "fix
the parser" thing. We can't just allow mixing XQuery and XUpdate
expressions - you should also define and implement semantics for such mixed
expressions, which can be not very obvious.
Anyway, XQUF support is definitely good feature, I just don't know when we
will have time enough to implement it :(.
Regards,
Ivan
On Fri, Jan 25, 2013 at 7:17 PM, Robby Pelssers <[email protected]>wrote:
> I read that Marklogic and other XML databases offer off the shelf
> functions for this.. So actually my idea was not even that crazy. But I see
> nothing in the sedna documentation that something like this is feasible.
>
> https://docs.marklogic.com/xdmp/update
>
> Robby
>
> -----Original Message-----
> From: Robby Pelssers [mailto:[email protected]]
> Sent: Friday, January 25, 2013 4:12 PM
> To: [email protected]
> Subject: [Sedna-discussion] Use Sedna DDL from XqueryService
>
> Hi all,
>
> By merely doing some experiments I noticed that I can execute this
> statement using the XMLDB API:
>
> DROP DOCUMENT "25860-14Z.xml" IN COLLECTION "chemicalContent/released"
>
>
> So my next question is... would it in that case also be possible to e.g.
> write some Operational XQuery Library making use of the DDL?
> I tested the snippet below but this does not work. But executing a single
> DDL statement like the one above does work. I guess it's not possible to
> accomplish sth like below??
>
> Robby
>
> **********************************************************************
> import module namespace cm = "http://www.nxp.com/chemicalcontent";
>
> declare function local:toURIs($ids as xs:string*) {
> for $id in $ids return document-uri(root(cm:getTypeName($id)))
> };
>
> declare function local:dropAll($ids as xs:string*) {
> for $uri in local:toURIs($ids)
> local:dropDocument($uri)
> };
>
> declare function local:dropDocument($document_uri as xs:string) {
> DROP DOCUMENT $document_uri IN COLLECTION "chemicalContent/released"
> };
>
> local:dropAll("74AHC1G00GW_C","74AHC1G00GW_C1")
> **********************************************************************
>
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC,
> Windows 8 Apps, JavaScript and much more. Keep your skills current with
> LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and
> experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion