Class: Saxon::XSLT::Executable
- Inherits:
-
Object
- Object
- Saxon::XSLT::Executable
- Extended by:
- Forwardable
- Defined in:
- lib/saxon/xslt/executable.rb
Overview
Represents a compiled XSLT stylesheet ready to be executed
Instance Method Summary collapse
- #apply_templates(source, opts = {}) ⇒ Object
- #call_template(template_name, opts = {}) ⇒ Object
-
#initialize(s9_xslt_executable, evaluation_context) ⇒ Executable
constructor
private
A new instance of Executable.
-
#to_java ⇒ net.sf.saxon.s9api.XsltExecutable
The underlying Saxon
XsltExecutable.
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.
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_java ⇒ net.sf.saxon.s9api.XsltExecutable
Returns the underlying Saxon XsltExecutable.
37 38 39 |
# File 'lib/saxon/xslt/executable.rb', line 37 def to_java @s9_xslt_executable end |