Go to the first, previous, next, last section, table of contents.


The Xpath_eval module

exception Wrong_number_of_args
exception Type_conversion_error of string
exception Unknown_function of string
module XPATH_EVAL (Tree : Xpath_tree.TREE) : 
sig
      type value =
          NodeSet of Tree.node_set
        | String of string
        | Number of float
        | Boolean of bool

      val dump_value : value -> string

      val boolean_of_value : value -> bool
      val string_of_value : value -> string
      val number_of_value : value -> float
      val nodeset_of_value : value -> Tree.node_set
      val string_of_node : Tree.node -> value
      val number_of_node : Tree.node -> value
      val boolean_of_node : Tree.node -> value
      type eval_context = {
        context_node : Tree.node;
        context_position : int;
        context_size : int;
      } 
      and 'a global_context = {
        context_vars : (string, value) Hashtbl.t;
        context_functions : 'a function_table;
        context_namespaces : 'a Xpath_names.context;
      } 
      and 'a xpath_function =
        'a global_context -> eval_context -> value list -> value
      and 'a function_table =
        (Xpath_names.expanded_name, 'a xpath_function) Hashtbl.t

      val eval_expr :
        'a global_context -> eval_context -> Xpath_syntax.expr -> value

      val eval_path_expr :
        'a global_context ->
        Xpath_tree.Axis.t ->
        Tree.node -> Xpath_syntax.path_expr -> Tree.node_set

      val core_function_library :
        unit ->
        (string * string,
         'a global_context -> eval_context -> value list -> value)
        Hashtbl.t
end


Go to the first, previous, next, last section, table of contents.