You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/main/resources/ml-modules/root/com.marklogic.smart-mastering/survivorship/merging/base.xqy
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1451,18 +1451,22 @@ declare function merge-impl:generate-path-templates($path-properties as map:map*
1451
1451
let $values := if ($wrap-in-array) then array-node {$values} else $values
1452
1452
return
1453
1453
typeswitch($values)
1454
+
caseempty-sequence() return
1455
+
()
1454
1456
(: Convert JSON nodes to the serialized JSON elements :)
1455
1457
casearray-node()|object-node() return
1456
1458
xdmp:from-json($values)
1457
1459
(: JSON specific leaf nodes can't be added directly added to XSLT :)
1458
1460
defaultreturn
1459
1461
let $data-value := fn:data($values)
1460
-
let $data-type := xdmp:type($data-value)
1461
-
where $data-type = xs:QName("xs:boolean") orfn:number($data-type) = 0or $data-value
0 commit comments