Sha256: 04835a27bd03e7a084ee3f4293a2c94dc68483afb19a44f487415d8c3a4e45b5

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'nokogiri'
require 'open-uri'

def xslt_transform(xml_open_uri_file, xsltfile, xslt_param_array)
	xml  = xml_open_uri_file
	xslt = Nokogiri::XSLT(open(xsltfile))
	result_doc = xslt.transform(xml, xslt_param_array)
	return result_doc
end

def xslt_apply_to(xml_open_uri_file, xsltfile, xslt_param_array)
	xml  = xml_open_uri_file
	xslt = Nokogiri::XSLT(open(xsltfile))
	result_doc = xslt.apply_to(xml, xslt_param_array)
	return result_doc
end



				

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lbp-0.1.3 lib/lbp/functions.rb
lbp-0.1.2 lib/lbp/functions.rb
lbp-0.1.1 lib/lbp/functions.rb
lbp-0.1.0 lib/lbp/functions.rb