ok… not sure I got this right
update
for $outer in (
for $inner in input()/doc
where $inner/system='X'
and $inner/disclosure_level = 'Public'
return
)[position() < 100]
let $target := $outer/disclosure_level
do
replace $target with
<disclosure_level>Test</disclosure_level>
… this runs without any error, but does not update any docs.
The where condidtion is good… if I run this, I get many nodes in return …
for $inner in input()/doc
where $inner/system='X'
and $inner/disclosure_level = 'Public'
return
$inner/disclosure_level
I assume I’ve got the syntax wrong.
-Kim
#Tamino#webMethods#API-Management