Returns a string from a string model. If the name of the string is not found, return empty string. The text will be returned in the user’s language.
NAMESPACE
xmlns:AS="http://schema.advantages.cz/AsapFunctions"
SYNTAX
string GetStringOrEmpty(string name) string GetStringOrEmpty(string name, arg0 ... arg9)
PARAMETERS
Name | Description |
---|---|
name | Name of the string. |
arg0 | An (optional) argument to be formatted into the string, replacing {0}. |
arg1 | An (optional) argument to be formatted into the string, replacing {1}. |
… arg9 | There can be up to 10 arguments passed to this function. |
REMARKS
This function is part of the localization infrastructure.
EXAMPLE
This example converts error codes into text messages. If error code is not found, return general error message.
Source XML
...
<xsl:value-of select="
AS:isnull(
AS:GetStringOrEmpty(
concat(
'DataTransError_',
/ROOT/DataTransPayment/@AuthorizationErrorCode)),
AS:GetString('DataTransError_Other'))"/>
...