I have following script:
<arc:set attr="Files#1">[FilePath]</arc:set>
<arc:call op="xmlDOMSearch?uri=[FilePath]&xpath=/Items/File">
<arc:set attr="Files#[_index | add(1)]">SOME_FILEPATH\[xpath('FileName')]</arc:set>
</arc:call>
<arc:enum attr="archiveFiles" expand="true">
<arc:set attr="_log.info">([_index]) [_attr] -> [_value]</arc:set>
</arc:enum>
Whatever I try, the enumeration only shows the first item. If I add a arc:set="_log.info” in the arc:call, each item is logged, but for some reason it is not added in the array.
The reason I want to add these files in an array is that I want to compress them all in 1 ZIP file.
Best answer by James B
View original