Great ! Had me worried for a sec. Good to see someone using the xmlsh ant task *and* in conjunction with the ML extension ! Just wait until you see the Amazon AWS extension then you can startup a MarkLogic server on AWS with xmlsh and send it work ... ( coming to a depot near you 'really soon').
I would really like to gather stats about usage but am reluctant to add a "phone home" feature/hack. I'm open to suggestions on how to gather stats so I can improve the product but without privacy or performance concerns. -David ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected] 812-482-5224 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lanz Sent: Monday, June 06, 2011 11:24 AM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] #Announce MarkLogic extension to xmlsh updated Many thanks Geert (one more time..) and in addition there was an unexpected semicolon after this expression <exportDate>{$my-element-value}<exportDate>); There was nothing reletad to XMLSH new version, issue closed ! Lanz On Mon, Jun 6, 2011 at 15:41, Geert Josten <[email protected]> wrote: > Hi Lanz, > > I am not an xmlsh expert, but I do notice something that looks like an > un-wellformed construct: > > <exportDate>{$my-element-value}<exportDate>); > > Might be a copy-paste error, but thought to mention it anyhow.. > > Kind regards, > Geert > > -----Oorspronkelijk bericht----- > Van: [email protected] > [mailto:[email protected]] Namens Lanz > Verzonden: maandag 6 juni 2011 15:38 > Aan: General MarkLogic Developer Discussion > Onderwerp: Re: [MarkLogic Dev General] #Announce MarkLogic extension to xmlsh > updated > > hi David, > > I've just updated MarkLogic extension module for xmlsh to 1.12 version > and precisely when I use invoke command it raise an error where there > wasn't before with XMLSH previous version. > XMLSH is launched through ANT > > Returned error is : > [echo] update ExportDates File /data/lookup/exportDates.xml with value > 2011-06-06T11:51:18.527 > [xmlsh] [C:/XXX/updateExportDates.xsh line: 4] > [xmlsh] Exception running: ml:invoke > > [xmlsh] com.marklogic.xcc.exceptions.XQueryException: > XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, > unexpected Junk_, expecting EndTagOpen_ > [xmlsh] [Session: user=myUser, cb=myDB [ContentSource: > user=myUser, cb=myDB [provider: address=/127.0.0.1:9021, pool=1/64]]] > [xmlsh] [Client: XCC/4.2-4, Server: XDBC/4.2-4] > [xmlsh] in /module/backend/updateExportDates.xqy, on line 10 > [xmlsh] expr: > > ANT task code is : > <xmlsh script="${xsh.path}/updateExportDates.xsh"> > <!-- ML login --> > <arg value="${ML.user}"/> > <!-- ML password --> > <arg value="${ML.password}"/> > <!-- ML XCC path --> > <arg value="${ML.XCC.path}"/> > <!-- URI of the file to update --> > <arg value="${ML.data.lookup.path}/exportDates.xml"/> > <!-- date element value --> > <arg value="${my.date.export}"/> > </xmlsh> > > Code of xsh file is > XMODPATH=C:/Tools/xmlsh/lib/ > import module ml=marklogic > MLCONNECT="xcc://$1:$2@$3" > ml:invoke -v module/backend/updateExportDates.xqy doc-uri $4 my-element-value > $5 > > Code of updateExportDates.xqy is : > xquery version "1.0-ml"; > > (:external variables :) > declare variable $doc-uri as xs:string external; > declare variable $my-element-value as xs:string external; > > try { > xdmp:node-insert-child(doc($doc-uri)/exportDates, > <exportDate>{$my-element-value}<exportDate>); > } catch($e) { > xdmp:log($e) > } > > Any help is welcomed ;-) > lanz > > > On Thu, Jun 2, 2011 at 17:35, Lee, David <[email protected]> wrote: >> I have released an update (1.12) to the MarkLogic extension module for >> xmlsh. >> >> This is a bug-fix release that fixes a problem in the invoke command passing >> external variables to stored queries. >> >> >> >> http://www.xmlsh.org/ModuleMarkLogic >> >> >> >> -David >> >> >> >> ---------------------------------------- >> >> David A. Lee >> >> Senior Principal Software Engineer >> >> Epocrates, Inc. >> >> [email protected] >> >> 812-482-5224 >> >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://developer.marklogic.com/mailman/listinfo/general >> >> > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
