Pass Single Quotes in a Mapper Variable
You can pass single quotes in a mapper variable without using an escape character. Consider the following example. The Expression Builder shows the following value.
![This image shows the Source elements, Mapping Canvas section, and Target elements. The highlighted Target element is 'ACTIVATED'. The Expression Builder at the bottom shows a value of 'ACTIVATED' |. This image shows the Source elements, Mapping Canvas section, and Target elements. The highlighted Target element is 'ACTIVATED'. The Expression Builder at the bottom shows a value of 'ACTIVATED' |.](img/single_quote.png)
Use an XSL variable to denote single quotes. You can also use an assign action
variable.
<xsl:variable name="quote" value="'"/>;
Use a
concat
function to append the quotes to the actual
value.<xsl:value-of select="concat($quote,$value,$quote)"/>
Note that the output on the test page and the Track Instances page shows
the following.
apos;ACTIVATED&apos
This is a display issue only and can be ignored. The value is successfully passed.