Choose
Provides a way to select transformation to perform based on an expression. Specify the condition in the when
element as an XPath expression. You can optionally specify an otherwise
condition for processing all elements that do not meet any of the specified when
conditions.
XSLT Equivalent
The following determines if the node set for FilesTransferred contains any files, and if so, performs an action. If the node set is empty (no files were transferred), a different action is performed.
<ns0:choose xmlns:ns0="http://www.w3.org/1999/XSL/Transform"> <ns0:when test="$FTP-Put/FTPPutOutputFile/FileTransferred" > < something here ... > </ns:0when> <ns0:otherwise> < something here ...> </ns0:otherwise> </ns0:choose>