fn:translate( $src as xs:string?, $mapString as xs:string?, $transString as xs:string? ) as xs:string?
Returns a string where every character in $src that occurs in some position in the $mapString is translated into the $transString character in the corresponding location of the $mapString character.
fn:translate("abcd", "abcd", "wxyz") => wxyz
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.