replace-fileext
Replaces the extension of the file path supplied by the filepath parameter with the one supplied by the connection to the extension parameter.

Languages
Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.
Parameters
Argument | Description |
---|---|
filepath | Mandatory argument. Supplies the file path to be processed. |
extension | Mandatory argument. Supplies the new extension to use. |
Example
If you supply "c:\data\Sample.log" as filepath, and ".txt" as extension, the result is c:\data\Sample.txt.