Project

Profile

Help

Bug #6553 ยป compileXQueryWithTraceEnabled_test001.xquery

Joe Che, 2024-09-30 05:23

 
declare namespace oms="urn:com:metasolv:oms:xmlapi:1";

declare function local:test(
$inboundMessage as element()?) as element()*
{
let $dummy := <dummy/>
return
if (fn:exists($inboundMessage))
then $inboundMessage
else $dummy
};


let $setUpMessageActivities :=
<oms:SetUpMessageActivities>
<oms:Org>
{
local:test(.)
}
</oms:Org>
</oms:SetUpMessageActivities>
return
$setUpMessageActivities
    (1-1/1)