Class: Saxon::XSLT::Transformation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Transformation



61
62
63
64
65
66
67
68
# File 'lib/saxon/xslt/executable.rb', line 61

def initialize(args)
  @s9_transformer = args.fetch(:s9_transformer)
  @destination = args.fetch(:destination, nil)
  @opts = args.reject { |opt, _|
    [:s9_transformer, :destination].include?(opt)
  }
  @raw = false
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



59
60
61
# File 'lib/saxon/xslt/executable.rb', line 59

def opts
  @opts
end

#s9_transformerObject (readonly)

Returns the value of attribute s9_transformer.



59
60
61
# File 'lib/saxon/xslt/executable.rb', line 59

def s9_transformer
  @s9_transformer
end

Instance Method Details

#apply_templates(source) ⇒ Object



70
71
72
# File 'lib/saxon/xslt/executable.rb', line 70

def apply_templates(source)
  transformation_result(:applyTemplates, source)
end

#call_template(template_name) ⇒ Object



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

def call_template(template_name)
  transformation_result(:callTemplate, resolve_qname(template_name))
end