Module: Saxon::XSLT::EvaluationContext::Common Private

Included in:
Saxon::XSLT::EvaluationContext, DSL
Defined in:
lib/saxon/xslt/evaluation_context.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

methods used by both Saxon::XSLT::EvaluationContext and DSL

Instance Method Summary collapse

Instance Method Details

#args_hashHash<Symbol => Hash,null>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

returns the context details in a hash suitable for initializing a new one

Returns:

  • (Hash<Symbol => Hash,null>)

    the args hash



27
28
29
30
31
32
33
34
35
36
# File 'lib/saxon/xslt/evaluation_context.rb', line 27

def args_hash
  check_for_clashing_parameters!
  {
    default_collation: @default_collation,
    static_parameters: @static_parameters,
    global_parameters: @global_parameters,
    initial_template_parameters: @initial_template_parameters,
    initial_template_tunnel_parameters: @initial_template_tunnel_parameters
  }
end

#initialize(args = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • args (Hash) (defaults to: {})

Options Hash (args):

  • default_collation (String)

    URI of the default collation

  • Hash (Hash<String,Symbol,Saxon::QName => Object,Saxon::XDM::Value] static_parameters Hash of QName => value bindings for static (compile-time) parameters for this compiler)

    >

    Object,Saxon::XDM::Value] static_parameters Hash of QName => value bindings for static (compile-time) parameters for this compiler



17
18
19
20
21
22
23
# File 'lib/saxon/xslt/evaluation_context.rb', line 17

def initialize(args = {})
  @default_collation = args.fetch(:default_collation, nil).freeze
  @static_parameters = args.fetch(:static_parameters, {}).freeze
  @global_parameters = args.fetch(:global_parameters, {}).freeze
  @initial_template_parameters = args.fetch(:initial_template_parameters, {}).freeze
  @initial_template_tunnel_parameters = args.fetch(:initial_template_tunnel_parameters, {}).freeze
end