Class: Saxon::XSLT::Executable

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

Overview

Represents a compiled XSLT stylesheet ready to be executed

Instance Method Summary collapse

Constructor Details

#initialize(s9_xslt_executable, evaluation_context) ⇒ Executable

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 a new instance of Executable.

Parameters:

  • s9_xslt_executable (net.sf.saxon.s9api.XsltExecutable)

    the Saxon compiled XSLT object

  • evaluation_context (XSLT::EvaluationContext)

    the XSLT’s evaluation context



21
22
23
# File 'lib/saxon/xslt/executable.rb', line 21

def initialize(s9_xslt_executable, evaluation_context)
  @s9_xslt_executable, @evaluation_context = s9_xslt_executable, evaluation_context
end

Instance Method Details

#apply_templates(source, opts = {}) ⇒ Object



27
28
29
# File 'lib/saxon/xslt/executable.rb', line 27

def apply_templates(source, opts = {})
  transformation(opts).apply_templates(source)
end

#call_template(template_name, opts = {}) ⇒ Object



31
32
33
# File 'lib/saxon/xslt/executable.rb', line 31

def call_template(template_name, opts = {})
  transformation(opts).call_template(template_name)
end

#to_javanet.sf.saxon.s9api.XsltExecutable

Returns the underlying Saxon XsltExecutable.

Returns:

  • (net.sf.saxon.s9api.XsltExecutable)

    the underlying Saxon XsltExecutable



37
38
39
# File 'lib/saxon/xslt/executable.rb', line 37

def to_java
  @s9_xslt_executable
end