Module: Saxon

Defined in:
lib/saxon/xml.rb,
lib/saxon/xslt.rb,
lib/saxon/s9api.rb,
lib/saxon/loader.rb,
lib/saxon/processor.rb,
lib/saxon/xslt/version.rb,
lib/saxon/configuration.rb,
lib/saxon/source_helper.rb

Defined Under Namespace

Modules: Loader, S9API, XML, XSLT Classes: Configuration, Processor, SourceHelper

Class Method Summary collapse

Class Method Details

.XML(input, opts = {}) ⇒ Saxon::XML::Document

Create an XML Document object using the default processor

Parameters:

  • input (File, IO, String)

    the input XML file

  • opts (Hash) (defaults to: {})

    options for the XML

Returns:



9
10
11
# File 'lib/saxon/xml.rb', line 9

def self.XML(input, opts = {})
  Saxon::Processor.default.XML(input, opts)
end

.XSLT(input, opts = {}) ⇒ Saxon::XSLT::Stylesheet

Create an XSLT Stylesheet object using the default processor

Parameters:

  • input (File, IO, String)

    the input XSLT file

  • opts (Hash) (defaults to: {})

    options for the XSLT

Returns:



10
11
12
# File 'lib/saxon/xslt.rb', line 10

def self.XSLT(input, opts = {})
  Saxon::Processor.default.XSLT(input, opts)
end