anchor.diff:                     end
                   ]
                  }]},
  -   {NewCtx,[InLine, LetFun]}.
  +   %{NewCtx,[InLine, LetFun]}.
  +   {NewCtx,[LetFun]}.
   
   window_loop(Ctx, #xqWindow{type = Type,
                              win_variable = #xqVar{id = WId,name = WName,type = WType,expr = Expr}, 
  
positive.code:                      {call,?L,{atom,?L,FunctionName},[{var,?L,'Ctx'},{var,?L, 'T'}]}
                      ]}]}
                  ]}]},
     {Ctx,[InLine,WhereFun]}.
  
  count_part(Ctx,{'count',#xqVar{id = Id,
                                 name = Name}} = Part,NextFunAtom) ->
  
negative.code:                {clause,?L, [{var,?L, 'Ctx'},OldVariableTupleMatch],[], % guards
                  [expr_do(LocCtx,Expr)]
                 }]},
     %{Ctx,[InLine, RetFun]}.
     {Ctx,[RetFun]}.
  
  where_part(Ctx,{'where',{Id, Expr}},_NextFunAtom) ->
     FunctionName = glob_fun_name({where, Id}),
  