anchor.diff:           end
      end.
   
  -%% Returns the part of $arg1 that follows the first occurrence of $arg2, taking collations into account. 
  +%% Returns the part of $arg1 that follows the first occurrence of $arg2, 
  +%% taking collations into account. 
   'substring-after'(#{'default-collation' := DefColl} = Ctx,Arg1,Arg2) -> 
      'substring-after'(Ctx,Arg1,Arg2,DefColl).
   
  
positive.code:    Options = map_options_to_list(Ctx, Arg2),
     xqerl_json:string_to_xml(JSON, Options).
  
  check_json_to_xml_opts(#{"escape" := {_,?bool(true)},
                           "fallback" := _}) ->
     ?err('FOJS0005');
  check_json_to_xml_opts(_) ->
     ok.
  
  %% This function tests whether the language of $node, or the context item if the second argument is omitted, as specified by xml:lang attributes is the same as, or is a sublanguage of, the language specified by $testlang. 
  'lang'(Ctx,Arg1) -> 
     Ci = xqerl_context:get_context_item(Ctx),
     'lang'(Ctx,Arg1,Ci).
  
negative.code: max1([H|T], []) ->
     max1(T, H);
  max1([H|T], Max) ->
     case xqerl_operators:less_than(H, Max) of
        ?bool(true) ->
           max1(T, Max);
        ?bool(false) ->
           max1(T, H)     
     end.
  
  