Returns a text or string resulting of the substitutions of the indicated arguments. The arguments of reference according to its ordinary order (starting by 0), the first argument is referenced by {0}, the second by {1}, etc. The text which should be format is passed through the attribute format. If one of the arguments is not found, it is not replaced and if more arguments are passed than have to be replaced, they are ignored.

1 string.messageFormat

<string.messageFormat format='format'>
    <value /> +
</string.messageFormat>
Example

This example shows how to replace two argument in the text to format.

Copy
<xsql-script name='string_format'>
    <body>
        <!-- The disk arg2 contains arg1 file(s) -->
        <println>
            <string.messageFormat format='The disk {1} contains {0} file(s)'>
                <string>arg1</string>
                <string>arg2</string>
            </string.messageFormat>
        </println>
    </body>
</xsql-script>

Returns:

Copy
The disk arg2 contains arg1 file(s)