Module: Saxon

Defined in:
lib/saxon.rb,
lib/saxon/xdm.rb,
lib/saxon/jaxp.rb,
lib/saxon/xslt.rb,
lib/saxon/qname.rb,
lib/saxon/s9api.rb,
lib/saxon/xpath.rb,
lib/saxon/loader.rb,
lib/saxon/source.rb,
lib/saxon/version.rb,
lib/saxon/xdm/map.rb,
lib/saxon/nokogiri.rb,
lib/saxon/xdm/item.rb,
lib/saxon/xdm/node.rb,
lib/saxon/item_type.rb,
lib/saxon/processor.rb,
lib/saxon/xdm/array.rb,
lib/saxon/xdm/value.rb,
lib/saxon/serializer.rb,
lib/saxon/axis_iterator.rb,
lib/saxon/configuration.rb,
lib/saxon/feature_flags.rb,
lib/saxon/parse_options.rb,
lib/saxon/sequence_type.rb,
lib/saxon/xslt/compiler.rb,
lib/saxon/xpath/compiler.rb,
lib/saxon/version/library.rb,
lib/saxon/xslt/executable.rb,
lib/saxon/xslt/invocation.rb,
lib/saxon/document_builder.rb,
lib/saxon/xdm/atomic_value.rb,
lib/saxon/xpath/executable.rb,
lib/saxon/serializer/object.rb,
lib/saxon/xdm/function_item.rb,
lib/saxon/xdm/sequence_like.rb,
lib/saxon/xdm/empty_sequence.rb,
lib/saxon/xdm/external_object.rb,
lib/saxon/feature_flags/errors.rb,
lib/saxon/occurrence_indicator.rb,
lib/saxon/xpath/static_context.rb,
lib/saxon/feature_flags/helpers.rb,
lib/saxon/feature_flags/version.rb,
lib/saxon/serializer/destination.rb,
lib/saxon/item_type/value_to_ruby.rb,
lib/saxon/xslt/evaluation_context.rb,
lib/saxon/xpath/variable_declaration.rb,
lib/saxon/serializer/output_properties.rb,
lib/saxon/item_type/lexical_string_conversion.rb

Overview

An idiomatic Ruby wrapper around the Saxon XML processing library.

Defined Under Namespace

Modules: FeatureFlags, JAXP, Loader, OccurrenceIndicator, S9API, Serializer, Version, XDM, XPath, XSLT Classes: AxisIterator, Configuration, DocumentBuilder, InvalidWhitespaceStrippingPolicyError, ItemType, ParseOptions, ParserFeatures, ParserProperties, Processor, QName, SequenceType, Source, SourceClosedError

Class Method Summary collapse

Class Method Details

.SequenceType(*args) ⇒ Object

Convenience wrapper for Saxon::SequenceType.create



128
129
130
# File 'lib/saxon/sequence_type.rb', line 128

def self.SequenceType(*args)
  SequenceType.create(*args)
end

.XML(input, opts = {}) ⇒ Object

Parse an XML document using a vanilla DocumentBuilder from the default Processor



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

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

.XSLT(input, opts = {}, &block) ⇒ Object

Compile an XSLT Stylesheet using a new Saxon::XSLT::Compiler from the default Processor



16
17
18
# File 'lib/saxon.rb', line 16

def self.XSLT(input, opts = {}, &block)
  Processor.default.XSLT(input, opts, &block)
end