Using XQuery (BaseX implementation), I need to process a set of XML records that may contain pairs of curly brackets within element text (e.g., <a>Abc {de} fg</a>). Right now, I am preprocessing the records outside of XQuery to ensure that these characters have been escaped as double brackets (<a>Abc {{de}} fg</a>).
Is there a standard way to escape these characters within XQuery in order to prevent them from being executed as an expression?
docorcollectionwhere it then shouldn't matter that there are curly braces? After all, they only have a special meaning in XQuery code, but not in XML input. - Martin Honnen