Top Level Namespace

Defined Under Namespace

Modules: Lbp

Instance Method Summary collapse

Instance Method Details

#xslt_apply_to(xml_open_uri_file, xsltfile, xslt_param_array) ⇒ Object



12
13
14
15
16
17
# File 'lib/lbp/functions.rb', line 12

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

#xslt_transform(xml_open_uri_file, xsltfile, xslt_param_array) ⇒ Object



5
6
7
8
9
10
# File 'lib/lbp/functions.rb', line 5

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