Hi,
I have a trigger named 'xxx' which is a post-commit trigger.
To change it to a pre-commit trigger, I use the following code:
(: $trigger as element(tr:trigger) :)
tr:trigger-set-event(
$trigger/tr:trigger-name,
<tr:data-event> {
(: copy the original element, except tr:when :)
$trigger/tr:data-event/*[fn:not(self::tr:when)],
tr:pre-commit()
}
</tr:data-event>
)
If I look at the result of tr:get-trigger('xxx'), everything
looks fine and the tr:when has been changed. But in the
MarkLogic console, the trigger is still marked as post-commit.
Did I do something wrong? Is there some caching issue in the
console?
Regards,
--
Florent Georges
http://www.fgeorges.org/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general