-
Notifications
You must be signed in to change notification settings - Fork 9
Sample Insert Transformer #88
Comments
Bob, Can you say a little bit more here? -Eric |
Yes, Eric, but I am lame with GITHUB. On Thu, Sep 6, 2012 at 11:20 PM, Eric Bloch notifications@github.comwrote:
Robert Starbird |
Ah, there is corona@developer.marklogic.com if you're looking to open a conversation. The issues thing is really just for bugs and rfes - neither of which does this appear to be (as far as i can tell). |
Agreed. It was a sample that I thought I could share for a baseline xquery Bob On Thu, Sep 6, 2012 at 11:47 PM, Eric Bloch notifications@github.comwrote:
Robert Starbird |
import module namespace imu = "http://xqdev.com/in-mem-update"
at "/MarkLogic/appservices/utils/in-mem-update.xqy";
(: xdmp:eval(string($transformer), (xs:QName("content"), $content, xs:QName("requestParameters"), $requestParameters, xs:QName("testMode"), false()), same-statement) :)
declare variable $content as node() external ;
declare variable $requestParameters as map:map external;
declare variable $testMode as xs:boolean external;
if ($testMode) then ()
else
let $uuid := map:get($requestParameters, "uuid")
let $content := imu:node-replace($content/question/@qid, attribute qid {$uuid})
return $content
The text was updated successfully, but these errors were encountered: