substitute-missing
This function is a convenient combination of exists function and if-else condition. If the item connected to the node input exists, its content will be copied to the target. Otherwise, the content of the item connected to the replace-with input will be copied to the target.

Languages
Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.
Parameters
Name | Description |
---|---|
node | This input must receive a connection from a mapping item that provides a sequence of zero or more values. For example, the connection may originate from a source XML item. |
replace-with | This input must receive a connection from a mapping item that provides the replacement value. |