Class: Saxon::XSLT::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/saxon/xslt/executable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xdm_value, s9_transformer) ⇒ Result

Returns a new instance of Result.



75
76
77
# File 'lib/saxon/xslt/executable.rb', line 75

def initialize(xdm_value, s9_transformer)
  @xdm_value, @s9_transformer = xdm_value, s9_transformer
end

Instance Attribute Details

#xdm_valueObject (readonly)

Returns the value of attribute xdm_value.



73
74
75
# File 'lib/saxon/xslt/executable.rb', line 73

def xdm_value
  @xdm_value
end

Instance Method Details

#to_sObject



79
80
81
82
# File 'lib/saxon/xslt/executable.rb', line 79

def to_s
  serializer = Serializer.new(@s9_transformer.newSerializer)
  serializer.serialize(xdm_value.to_java)
end