Loading TOC...

XDMP-BADREP

W3C XQuery Standard Equivalent: err:FORX0004

Message Text

Invalid replacement string: variable1

Cause

An invalid replacement string was supplied to fn:replace. The error is usually one of these cases:

The replacement string contains a "$" character that is not immediately followed by a digit 0-9 and not immediately preceded by a "\".The replacement string contains a "\" character that is not part of a "\\" pair and not immediately followed by a "$" character.

Response

Correct your code.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.