anchor.diff:        _ ->
            []
      end.
  -
  -%%    % since schema validation is not implemented, this will always be false
  -%%    Self = xqerl_step:forward(Ctx, Node, self, 
  -%%                              #xqKindTest{kind = element, 
  -%%                                          name = #qname{namespace = "*",
  -%%                                                        prefix = "*",local_name = "*"}},[]),
  -%%    case ?seq:is_empty(Self) of
  -%%       true ->
  -%%          ?seq:empty();
  -%%       _ ->
  -%%          ?bool(false)
  -%% %%          Atts = xqerl_step:forward(Ctx,Node, attribute, #qname{namespace = "http://www.w3.org/2001/XMLSchema-instance",
  -%% %%                                                                prefix = "xsi", 
  -%% %%                                                                local_name = "nil"},[]),
  -%% %%          case ?seq:is_empty(Atts) of
  -%% %%             true ->
  -%% %%                ?bool(false);
  -%% %%             _ ->
  -%% %%                ?bool(xqerl_types:string_value(Atts) == "true" )
  -%% %%          end
  -%%    end.
   
   %% Returns the name of a node, as an xs:QName. 
   'node-name'(Ctx) ->
  
positive.code:    'minutes-from-duration'(Ctx, Arg1).
  
  %% Returns the number of minutes in a duration. 
  'minutes-from-duration'(_Ctx, Arg1) ->
     case ?seq:is_empty(Arg1) of
        true ->
          Arg1;
        _ ->
           #xqAtomicValue{value = #xsDateTime{sign = Sn, minute = Mi}} = ?seq:singleton_value(Arg1),
           Mi1 = if Sn =:= '-' ->
                       Mi * -1;
                    true ->
                       Mi
                 end,
           ?atint(Mi1)
     end.
  
  %% Returns the minutes component of an xs:time. 
  'minutes-from-time'(Ctx,Arg1) -> 
  
negative.code:          end
     end.
  
  %% This function takes as input an XML external entity represented as a string,
  %% and returns the document node at the root of an XDM tree representing the 
  %% parsed document fragment. 
  'parse-xml-fragment'(_,[]) -> [];
  'parse-xml-fragment'(Ctx,Arg1) -> 
     'parse-xml'(Ctx,Arg1).
  
  %% Returns a path expression that can be used to select the supplied node 
  %% relative to the root of its containing document. 
  'path'(Ctx) ->
     Ci = xqerl_context:get_context_item(Ctx),
     'path'(Ctx, Ci).
  
  'path'(_,[]) -> [];
  'path'(Ctx,[Arg1]) -> 'path'(Ctx,Arg1);
  'path'(Ctx,#xqNode{doc = {doc,File}, node = Node}) ->
     Doc = ?get({doc,File}),
     'path'(Ctx,#xqNode{doc = Doc, node = Node});
  