applysymmetricswappingAdded by IBM on October 10, 2012 | Version 1 (Original)
|Ensures that symmetric characters, such as parentheses or greater than and less than signs, are swapped when displayed in the Right-to-Left orientation. In other words, this function “mirrors” symmetric characters, replacing the left character with the right character, and vice versa.
Examples of symmetric characters:
This function can be used as part of an XFDL compute, an XForms bind or an XPath expression.
Table 1. apply symmetrical swapping parameters
|reference||Reference string, literal string or XPath expression||a literal string or reference to the text that you want to apply the function to.|
String containing Right-To-Left text with swapped symmetrical characters.
The applysymmetricswapping function can be used in three ways:
- XFDL computes
- XPath expressions
- XForm binds
The following example assumes the capitalized text used in this compute is bidirectional. As a result, the data displayed is ABCD ] EFG [ HI. Notice, the brackets were mirrored.
<value compute=" applysymmetricswapping (' ABCD [ EFG ] HI')"></value>
The following example uses an XPath expression to call the applysymmetricswapping function.
value="xfdl: applysymmetricswapping('ABCD [ EFG ] HI')">
The following example uses an XForms bind to call the applysymmetricswapping function.
calculate="xfdl: applysymmetricswapping ('ABCD [ EFG ] HI')"/>