|
From: Ghislain <g...@28...> - 2013-04-24 16:16:37
|
Hi, I think it could work if you write an XQuery function that takes an XQuery code string as well as an XML node as parameters, and you call this function from JS. However, to write it, you will need a library function that evaluates a string containing XQuery code. I am clarifying whether MXQuery has such a function, and if it can take XML input, and will get back to you when I know more. I hope it helps? Thanks for your interest in XQIB and kind regards, Ghislain On Apr 24, 2013, at 12:07 AM, ousta ousta <ous...@gm...> wrote: > I saw the sample using xqib.call to call some xquery code in javascript. > > My need would be somewhat different. I would have: > 1. some XQUERY code contained within a javascript var. > 2. a javascript var that contain an XML that i wanna use the xquery in 1. against. > > This will mean dynamically execute the xquery contain in my js var against the xml contained in another variable and then store the result in a js variable. > > What would be the best way to do this in xqib? > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |