Exception: Saxon::XPath::MissingVariableNamespaceError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/saxon/xpath/static_context.rb

Overview

Raised when an attempt to declare a variable is made using a string for the qname with a namespace prefix that has not been declared in the context yet

Instance Method Summary collapse

Constructor Details

#initialize(variable_name, prefix) ⇒ MissingVariableNamespaceError

Returns a new instance of MissingVariableNamespaceError.



9
10
11
# File 'lib/saxon/xpath/static_context.rb', line 9

def initialize(variable_name, prefix)
  @variable_name, @prefix = variable_name, prefix
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/saxon/xpath/static_context.rb', line 13

def to_s
  "Namespace prefix ‘#{@prefix}’ for variable name ‘#{@variable_name}’ is not bound to a URI"
end