Exception: Saxon::XDM::AtomicValue::CannotCreateQNameFromString

Inherits:
StandardError
  • Object
show all
Defined in:
lib/saxon/xdm/atomic_value.rb

Overview

Error thrown when an attempt to create QName-holding XDM::AtomicValue is made using anything other than a QName or s9api.QName instance.

QNames are dependent on the namespace URI, which isn’t present in the lexical string you normally see (e.g. prefix:name). Prefixes are only bound to a URI in the context of a particular document, so creating them imlpicitly through the XDM::AtomicValue creation process doesn’t really work. They need to be created explicitly and then handed in to be wrapped.

Instance Method Summary collapse

Instance Method Details

#to_sObject

returns an error message



24
25
26
# File 'lib/saxon/xdm/atomic_value.rb', line 24

def to_s
  "QName XDM::AtomicValues must be created using an instance of Saxon::QName, not a string like 'prefix:name': Prefix URI binding is undefined at this point"
end